Part Number Hot Search : 
K12A25N FQD24N08 5815EP N54LS AT45D LPBS252 ZLNB254D IS61WV
Product Description
Full Text Search
 

To Download KSZ8895MLXC-TR Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2016 microchip technology inc. ds00002246a-page 1 features advanced switch features ? ieee 802.1q vlan support for up to 128 active vlan groups (full-range 4096 of vlan ids) ? static mac table supports up to 32 entries ? vlan id tag/untagged options, per port basis ? ieee 802.1p/q tag inserti on or removal on a per port basis based on ingress port (egress) ? programmable rate limiting at the ingress and egress on a per port basis ? jitter-free per packet based rate limiting sup- port ? broadcast storm protection with percentage con- trol (global and per port basis) ? ieee 802.1d rapid spanni ng tree protocol rstp support ? tail tag mode (1 byte added before fcs) sup- port at port 5 to in form the processor which ingress port receives the packet ? 1.4 gbps high-performance memory bandwidth and shared memory based switch fabric with fully non-blocking configuration ? dual mii with mac 5 and phy 5 on port 5, sw5- mii/rmii for mac 5 and p5-mii/rmii for phy 5 ? enable/disable option for huge frame size up to 2000 bytes per frame ? igmp v1/v2 snooping (ipv4) support for multicast packet filtering ? ipv4/ipv6 qos support ? support unknown unicast/multicast address and unknown vid packet filtering ? self-address filtering comprehensive configuration register access ? serial management interface (mdc/mdio) to all phys registers and smi interface (mdc/mdio) to all registers ? high-speed spi (up to 25 mhz) and i 2 c master interface to all internal registers ? i/o pins strapping and eeprom to program selective registers in unmanaged switch mode ? control registers configurable on the fly (port- priority, 802.1p/d/q, an?) qos/cos packet prio ritization support ? per port, 802.1p and diffserv-based ? 1/2/4-queue qos prioritization selection ? programmable weighted fair queuing for ratio control ? re-mapping of 802.1p priority field per port basis integrated 5-port 10/100 ethernet switch ? new generation switch with five macs and five phys that are fully co mpliant with the ieee 802.3u standard ? phys designed with patented enhanced mixed- signal technology ? non-blocking switch fabr ic ensures fast packet delivery by utilizing a 1k mac address lookup table and a store-and-forward architecture ? on-chip 64kbyte memory for frame buffering (not shared with 1k unicast address table) ? full-duplex ieee 802.3x flow control (pause) with force mode option ? half-duplex back pressure flow control ? hp auto mdi/mdi-x a nd ieee auto crossover support ? sw-mii interface supports both mac mode and phy mode ? 7-wire serial network interface (sni) support for legacy mac ? per port led indicators for link, activity, and 10/ 100 speed ? register port status support for link, activity, full-/half-duplex and 10/100 speed ? linkmd ? cable diagnostic capabilities ? on-chip terminations and internal biasing tech- nology for cost down and lowest power con- sumption switch monitoring features ? port mirroring/monitoring/sniffing: ingress and/or egress traffic to any port or mii ? mib counters for fully compliant statistics gath- ering; 34 mib counters per port ? loopback support for mac, phy, and remote diagnostic of failure ? interrupt for the link change on any ports low-power dissipation ? full-chip hardware power-down ? full-chip software power-down and per port software power-down ? energy-detect mode support <100 mw full-chip power consumption when all ports have no ksz8895mqx/rqx/fqx/mlx integrated 5-port 10/100 managed ethernet switch with mii/rmii interface
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 2 ? 2016 microchip technology inc. activity ? very-low full-chip power consumption (<0.5w) in standalone 5-port, without extra power con- sumption on transformers ? dynamic clock tree shutdown feature ? voltages: single 3.3v supply with 3.3v v ddio and internal 1.2v ldo controller enabled, or external 1.2v ldo solution - analog v ddat 3.3v only -v ddio support 3.3v, 2.5v, and 1.8v - low 1.2v core power ? commercial temperature range: 0c to +70c ? industrial temperature range: ?40c to +85c ? available in 128-pin pqfp and 128-pin lqfp, lead-free packages target applications ?typical ? voip phone ? set-top/game box ? industrial control ? iptv pof ? soho residential gateway ? broadband gateway/firewall/vpn ? integrated dsl/cable modem ? wireless lan access point + gateway ? standalone 10/100 5-port switch
? 2016 microchip technology inc. ds00002246a-page 3 ksz8895mqx/rqx/fqx/mlx to our valued customers it is our intention to provide our valued customers with the bes t documentation possible to ensure successful use of your micro chip products. to this end, we will continue to improve our public ations to better suit your needs. our publications will be refined and enhanced as new volumes and updates are introduced. if you have any questions or comments regarding this publication, please contact the marketing co mmunications department via e-mail at docerrors@microchip.com . we welcome your feedback. most current data sheet to obtain the most up-to-date version of this data s heet, please register at our worldwide web site at: http://www.microchip.com you can determine the version of a data s heet by examining its literature number found on the bottom outside corner of any page . the last character of the literature number is the vers ion number, (e.g., ds30000000a is version a of document ds30000000). errata an errata sheet, describing minor operati onal differences from the data sheet and recommended workarounds, may exist for cur- rent devices. as device/doc umentation issues become known to us, we will publish an errata s heet. the errata will specify the revision of silicon and revision of document to which it applies. to determine if an errata sheet exists for a particul ar device, please check with one of the following: ? microchip?s worldwide web site; http://www.microchip.com ? your local microchip sales office (see last page) when contacting a sales office, please specify which device, re vision of silicon and data sheet (include -literature number) yo u are using. customer notification system register on our web site at www.microchip.com to receive the most current information on all of our products.
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 4 ? 2016 microchip technology inc. table of contents 1.0 introduction .............................................................................................................. ....................................................................... 5 2.0 pin description and configuration ......................................................................................... .......................................................... 6 3.0 functional description .................................................................................................... ............................................................... 20 4.0 register descriptions ..................................................................................................... ............................................................... 46 5.0 operational characteristics ............................................................................................... ............................................................ 87 6.0 electrical characteristics ................................................................................................ ............................................................... 88 7.0 timing diagrams ............................................................................................................ ................................................................ 90 8.0 reset circuit.............................................................................................................. ................................................................... 100 9.0 selection of isolation transformer ......................................................................................... ...................................................... 101 10.0 package outline........................................................................................................... .............................................................. 102 appendix a: data sheet revision history ....................................................................................... .................................................. 104 the microchip web site ........................................................................................................ ............................................................ 105 customer change notification service .......................................................................................... ................................................... 105 customer support .............................................................................................................. ............................................................... 105 product identification system ................................................................................................. ........................................................... 106
? 2016 microchip technology inc. ds00002246a-page 5 ksz8895mqx/rqx/fqx/mlx 1.0 introduction 1.1 general description the ksz8895mqx/rqx/fqx/mlx is a highly -integrated, layer 2 managed, five -port switch with numerous features designed to reduce system cost. intended for cost-sensitiv e 10/100mbps five-port switch systems with low power con- sumption, on-chip termination, and internal core power cont rollers, it supports high-performance memory bandwidth and shared memory-based switch fabric wit h non-blocking configuration. its extensive feature set includes power manage- ment, programmable rate limit and priori ty ratio, tag/port-based vlan, packets filtering, four-queue qos prioritization, management interfaces, and mib counters. th e ksz8895 family provides multiple cpu data interfaces to effectively address both current and emerging fast ether net applications when port 5 is configured to separate mac5 with sw5- mii/rmii and phy5 with p5-mii/rmii interfaces. the ksz8895 family offers three co nfigurations, providing the flexibilit y to meet different requirements: ? ksz8895mqx/mlx: five 10/100base-t/tx transceiv ers, one sw5-mii, and one p5-mii interface ? ksz8895rqx: five 10/100base-t/tx transceive rs, one sw5-rmii, and one p5-rmii interface ? ksz8895fqx: four 10/100base-t/tx transceivers on ports 1, 2, 3, and 5 (port 3 can be set to fiber mode). one 100base-fx transceiver on port 4. one sw5-mii and one p5-mii interface all registers of macs and phys units can be managed by t he spi or the smi interface. miim registers can be accessed through the mdc/mdio interface. eeprom can set all control registers for the unmanaged mode. ksz8895mqx/rqx/fqx are available in the 128-pin pq fp package. ksz8895mlx is available as a 128-pin lqfp package. figure 1-1: functional diagram look up engine queue management 10/100 mac1 10/100 mac2 10/100 mac3 10/100 mac4 10/100 mac5 fifo, flow control, vlan tagging, proirity spi eeprom interface led i/f control reg spi i/f mib counters led led led control registers mdc/mdio for miim and smi sw5-mii/rmii or sni automdi/mdix automdi/mdix automdi/mdix automdi/mdix automdi/mdix p5-mii/rmii ksz8895mqx/rqx/fqx/mlx 10/100 t/tx phy1 10/100 t/tx phy2 buffer management frame buffers 10/100 t/tx/fx phy3 10/100 t/tx/fx phy4 10/100 t/tx phy5
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 6 ? 2016 microchip technology inc. 2.0 pin description and configuration figure 2-1: 128-pqfp pin assignment (top view) txm5 vddat fxsd3 txp5 33 34 35 36 37 38 ksz8895mqx/rqx/fqx (top view) nc pmrxdv/pmcrsdv nc nc nc nc nc nc pwrdn_n intr_n gndd vddc pmtxen pmtxd3 pmtxd2 pmtxd1 pmtxd0 pmtxer pmtxc/pmrefclk gndd pmrxd1 vddio pmrxc pmrxd3 pmrxd2 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 64 fxsd4 led3-1 led4-0 led3-2 sconf1 scol smrxd2 vddio smtxc/smrefclk smtxd0 smtxd2 smtxen pcol pcrs pmrxer led4-1 led4-2 led5-1 led5-2 vddc gndd sconf0 scrs smrxd0 smrxd1 smrxd3 smrxdv/smcrsdv smrxc gndd smtxer smtxd1 smtxd3 pmrxd0 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 led2-1 led2-2 vddio gndd led3-0 101 100 99 98 97 led2-0 102 103 gnda led1-0 mdixdis test2 gnda in_pwr_sel ldo_o nc x2 x1 nc scanen testen vddc gndd rst_n ps0 ps1 spis_n spid/sda spic/scl spiq mdio mdc led1-1 led1-2 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 vddar rxp1 rxm1 gnda txp1 txm1 vddat rxp2 rxm2 rxm3 txp3 rxp4 txm4 vddar rxm5 gnda gnda txp2 txm2 vddar gnda iset vddat rxp3 gnda txm3 vddat rxm4 gnda txp4 gnda rxp5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 nc led5-0
? 2016 microchip technology inc. ds00002246a-page 7 ksz8895mqx/rqx/fqx/mlx figure 2-2: 128-lqfp pin assignment (top view) table 2-1: signals - ks z8895mqx/rqx/fqx/mlx pin number pin name type, note 2-1 port pin function, note 2-2 1mdi-xdisipd 1 - 5 disable auto mdi/mdi-x. pd (default) = normal operation. pu = disable auto mdi/mdi-x on all ports. 2 gnda gnd ? analog ground. txm5 vddat nc txp5 33 34 35 36 37 38 ksz8895mlx (top view) nc pmrxdv nc nc nc nc nc nc pwrdn_n intr_n gndd vddc pmtxen pmtxd3 pmtxd2 pmtxd1 pmtxd0 pmtxer pmtxc gndd pmrxd1 vddio pmrxc pmrxd3 pmrxd2 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 64 nc led3-1 led4-0 led3-2 sconf1 scol smrxd2 vddio smtxc smtxd0 smtxd2 smtxen pcol pcrs pmrxer led4-1 led4-2 led5-1 led5-2 vddc gndd sconf0 scrs smrxd0 smrxd1 smrxd3 smrxdv smrxc gndd smtxer smtxd1 smtxd3 pmrxd0 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 led2-1 led2-2 vddio gndd led3-0 101 100 99 98 97 led2-0 102 103 gnda led1-0 mdixdis test2 gnda in_pwr_sel ldo_o nc x2 x1 nc scanen testen vddc gndd rst_n ps0 ps1 spis_n spid/sda spic/scl spiq mdio mdc led1-1 led1-2 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 vddar rxp1 rxm1 gnda txp1 txm1 vddat rxp2 rxm2 rxm3 txp3 rxp4 txm4 vddar rxm5 gnda gnda txp2 txm2 vddar gnda iset vddat rxp3 gnda txm3 vddat rxm4 gnda txp4 gnda rxp5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 nc led5-0
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 8 ? 2016 microchip technology inc. 3 vddar p ? 1.2v analog v dd . 4rxp1i 1 physical receive signal + (differential). 5rxm1i 1 physical receive signal - (differential). 6 gnda gnd ? analog ground. 7 txp1 o 1 physical transmit signal + (differential). 8txm1o 1 physical transmit signal - (differential). 9 vddat p ? 3.3v analog v dd . 10 rxp2 i 2 physical receive signal + (differential). 11 rxm2 i 2 physical receive signal - (differential). 12 gnda gnd ? analog ground. 13 txp2 o 2 physical transmit signal + (differential). 14 txm2 o 2 physical transmit signal - (differential). 15 vddar p ? 1.2v analog v dd . 16 gnda gnd ? analog ground. 17 iset ? ? set physical transmit output current. pull-down with a 12.4 k ? 1% resistor. 18 vddat p ? 3.3v analog v dd . 19 rxp3 i 3 physical receive signal + (differential). 20 rxm3 i 3 physical receive signal - (differential). 21 gnda gnd ? analog ground. 22 txp3 o 3 physical transmit signal + (differential). 23 txm3 o 3 physical transmit signal - (differential). 24 vddat p ? 3.3v analog v dd . 25 rxp4 i 4 physical receive signal + (differential). 26 rxm4 i 4 physical receive signal - (differential). 27 gnda gnd ? analog ground. 28 txp4 o 4 physical transmit signal + (differential). 29 txm4 o 4 physical transmit signal - (differential). 30 gnda gnd ? analog ground. 31 vddar p ? 1.2v analog v dd . 32 rxp5 i 5 physical receive signal + (differential). table 2-1: signals - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
? 2016 microchip technology inc. ds00002246a-page 9 ksz8895mqx/rqx/fqx/mlx 33 rxm5 i 5 physical receive signal - (differential). 34 gnda gnd ? analog ground. 35 txp5 o 5 physical transmit signal + (differential). 36 txm5 o 5 physical transmit signal - (differential). 37 vddat p ? 3.3v analog v dd . 38 nc/fxsd3 ipd 3 fqx: this pin can be floating when port 3 is used as copper port (default). port 3 can be set to fiber mode by register 239 bit [7], this pin is used for fiber signal detect pin on port 3 in fiber mode. mqx/rqx/mlx: no connection. 39 fxsd4 ipd 4 fqx: fiber signal detect pin for port 4. mqx/rqx/mlx: no connection. 40 nc nc ? no connection. leave nc pin floating. 41 nc nc ? no connection. leave nc pin floating. 42 nc nc ? no connection. leave nc pin floating. 43 nc nc ? no connection. leave nc pin floating. 44 nc nc ? no connection. leave nc pin floating. 45 nc nc ? no connection. leave nc pin floating. 46 nc nc ? no connection. leave nc pin floating. 47 pwrdn_n ipu ? full-chip power down. active low. 48 intr_n opu ? interrupt. this pin is open-drain output pin. 49 gndd gnd ? digital ground. 50 vddc p ? 1.2v digital core v dd . 51 pmtxen ipd 5 phy [5] m ii/rmii transmit enable. 52 pmtxd3 ipd 5 mqx/fqx/mlx: phy [5] mii transmit bit 3. rqx: no connection for rmii. 53 pmtxd2 ipd 5 mqx/fqx/mlx: phy [5] mii transmit bit 2. rqx: no connection for rmii. 54 pmtxd1 ipd 5 phy [5] mii/rmii transmit bit 1. 55 pmtxd0 ipd 5 phy [5] mii/rmii transmit bit 0. 56 pmtxer ipd 5 mqx/fqx/mlx: phy [5] mii transmit error. rqx: no connection for rmii. 57 pmtxc/ pmrefclk i/o 5 mqx/fqx/mlx: output phy [5] mii transmit clock rqx: input phy [5] rmii reference clock, 50 mhz 50 ppm, the 50 mhz clock comes from pmrxc pin 60. 58 gndd gnd ? digital ground. table 2-1: signals - ksz8895 mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 10 ? 2016 microchip technology inc. 59 vddio p ? 3.3v, 2.5v, or 1.8v digital v dd for digital i/o circuitry. 60 pmrxc i/o 5 mqx/fqx/mlx: output ph y [5] mii receive clock. rqx: output phy [5] rmii referenc e clock, this clock is used when opposite doesn?t provide rmii 50 mhz clock or the system doesn?t provide an external 50 mhz clock for the p5-rmii interface. 61 pmrxdv/ pmcrsdv ipd/o 5 mqx/fqx/mlx: pmrxdv is for ph y [5] mii receive data valid. rqx: pmcrsdv is for phy [5] rm ii carrier sense/receive data valid output. 62 pmrxd3 ipd/o 5 mqx/fqx/mlx: phy [5 ] mii receive bit 3. rqx: no connection for rmii. strap option: pd (default) = enable flow control. pu = disable flow control. 63 pmrxd2 ipd/o 5 mqx/fqx/mlx: phy [5 ] mii receive bit 2. rqx: no connection for rmii. strap option: pd (default) = disable back pressure. pu = enable back pressure. 64 pmrxd1 ipd/o 5 mqx/fqx/mlx: phy [5 ] mii receive bit 1. rqx: phy [5] rmii receive bit 1. strap option: pd (default) = drop excessive collision packets. pu = does not drop excessive collision packets. 65 pmrxd0 ipd/o 5 mqx/fqx/mlx: phy [5 ] mii receive bit 0. rqx: phy [5] rmii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode. pu = enable for performance enhancement. 66 pmrxer ipd/o 5 mqx/fqx/mlx:phy [5] mii receive error rqx: phy [5] rmii receive error strap option: pd (default) = packet size 1518/1522 bytes. pu = 1536 bytes. 67 pcrs ipd/o 5 mqx/fqx/mlx: phy [5 ] mii carrier sense. rqx: no connection for rmii. strap option for port 4 only. pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = force full-duplex if auto negotiation is disabled or fails. refer to register 76. 68 pcol ipd/o 5 mqx/fqx/mlx: phy [5] mii collision detect. rqx: no connection. strap option for port 4 only. pd (default) = no force flow control, normal operation. pu = force flow control. refer to register 66. table 2-1: signals - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
? 2016 microchip technology inc. ds00002246a-page 11 ksz8895mqx/rqx/fqx/mlx 69 smtxen ipd ? port 5 switch mii/rmii transmit enable. 70 smtxd3 ipd ? mqx/fqx/mlx: port 5 switch mii transmit bit 3. rqx: no connection for rmii. 71 smtxd2 ipd ? mqx/fqx/mlx: port 5 switch mii transmit bit 2. rqx: no connection for rmii. 72 smtxd1 ipd ? port 5 switch mii/rmii transmit bit 1. 73 smtxd0 ipd ? port 5 switch mii/rmii transmit bit 0. 74 smtxer ipd ? mqx/fqx/mlx: port 5 swit ch mii transmit error rqx: port 5 switch rmii transmit error 75 smtxc/ smrefclk i/o ? mqx/fqx/mlx: port 5 swit ch mii transmit clock, input: sw5-mii mac mode, output: sw5-mii phy modes. rqx: input sw5-rmii 50mhz 5 0 ppm reference clock. the 50 mhz clock comes from smrxc pin 78 when the device is the clock mode which the device?s clock comes from 25 mhz crystal/ oscillator from pins x1/x2. or the 50 mhz clock comes from exter- nal 50 mhz clock source when the device is the normal mode which the device?s clock source comes from smtxc pin not from x1/x2 pins. 76 gndd gnd ? digital ground. 77 vddio p ? 3.3v, 2.5v, or 1.8v digital v dd for digital i/o circuitry. 78 smrxc i/o ? mqx/fqx/mlx: port 5 s witch mii receive clock, input: sw5-mii mac mode, output: sw5-mii phy mode. rqx: output sw5-rmii 50 mhz clock, this clock is used when opposite doesn?t provide rmii reference clock or the system doesn?t provide an external 50 mh z clock for the rmii interface. 79 smrxdv/ smcrsdv ipd/o ? mqx/fqx/mlx: smrxdv is for sw itch mac5 mii receive data valid. rqx: smcrsdv is for mac5 rmii carrier sense/receive data valid output. 80 smrxd3 ipd/o ? mqx/fqx/mlx: port 5 swit ch mii receive bit 3. rqx: no connection for rmii strap option: pd (default) = disable switch sw5 -mii/rmii full-duplex flow control pu = enable switch sw5-mii/rmii full-duplex flow control. 81 smrxd2 ipd/o ? mqx/fqx/mlx: port 5 swit ch mii receive bit 2. rqx: no connection for rmii strap option: pd (default) = switch sw5-mii/rmii in full-duplex mode; pu = switch sw5-mii/rmii in half-duplex mode. 82 smrxd1 ipd/o ? mqx/fqx/mlx: port 5 swit ch mii receive bit 1. rqx: port 5 switch rmii receive bit 1. strap option: pd (default) = port 5 switch sw5-mii/rmii in 100 mbps mode. pu = switch sw5-mii/rmii in 10 mbps mode. table 2-1: signals - ksz8895 mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 12 ? 2016 microchip technology inc. 83 smrxd0 ipd/o ? mqx/fqx/mlx: port 5 swit ch mii receive bit 0. rqx: port 5 switch rmii receive bit 0 strap option: led mode pd (default) = mode 0; pu = mode 1. see ?register 11.? mode 0, link at: 100/full ledx[2,1,0] = 0, 0, 0 100/half ledx[2,1,0] = 0, 1, 0 10/full ledx[2,1,0] = 0, 0, 1 10/half ledx[2,1,0] = 0, 1, 1 mode 1, link at: 100/full ledx[2,1,0] = 0, 1, 0 100/half ledx[2,1,0] = 0, 1, 1 10/full ledx[2,1,0] = 1, 0, 0 10/half ledx[2,1,0] = 1, 0, 1 ? mode 0 mode 1 ledx_2 link/activity 100link/activity ledx_1 full-duplex/col 10link/activity ledx_0 speed full-duplex 84 scol ipd/o ? mqx/fqx/mlx: port swit ch mii collision detect, input: sw5-mii mac modes, output: sw5-mii phy modes rqx: no connection for rmii 85 scrs ipd/o ? mqx/fqx/mlx: port swit ch mii collision detect, input: sw5-mii mac modes, output: sw5-mii phy modes rqx: no connection for rmii table 2-1: signals - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
? 2016 microchip technology inc. ds00002246a-page 13 ksz8895mqx/rqx/fqx/mlx 86 sconf1 ipd ? pins 91, 86, and 87 are dual mii/rmii configuration pins for the port 5 mac5 mii/rmii and phy [5] mii/rmii. sw5-mii supports both mac mode and phy modes. p5-mii supports phy mode only. see pins configuration below: pin# (91, 86, 87) port 5 switch mac5 sw5- mii/ rmii port5 phy5 p5- mii/rmii 000 disable, otri disable, otri 001 phy mode mii, or rmii disable, otri 010 mac mode mii, or rmii disable, otri 011 phy mode sni disable, otri 100 disable (default) disable (default) 101 phy mode mii or rmii p5-mii/rmii 110 mac mode mii or rmii p5-mii/rmii 111 phy mode sn i p5-mii/rmii 87 sconf0 ipd ? dual mii/rmii configuration pin. see pin 86 descriptions. 88 gndd gnd ? digital ground. 89 vddc p ? 1.2v digital core v dd . 90 led5-2 ipu/o 5 led indicator 2. strap option: aging setup. see ?aging? section. pu (default) = aging enable pd = aging disable. 91 led5-1 ipu/o 5 led indicator 1. strap option: pu (default): enable phy [5] mii i/f. pd: tri-state all phy [5] mii output. see ?pin 86 sconf1.? 92 led5-0 ipu/o 5 led indicator 0. strap option for port 4 only. pu (default) = enable auto-negotiation. pd = disable auto-negotiation. strap to register76 bit [7]. 93 led4-2 ipu/o 4 led indicator 2 94 led4-1 ipu/o 4 led indicator 1 table 2-1: signals - ksz8895 mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 14 ? 2016 microchip technology inc. 95 led4-0 ipu/o 4 led indicator 0. strap option: pu (default) = normal mode. pd = energy detection mode (edpd mode) strap to register 14 bits [4:3] 96 led3-2 ipu/o 3 led indicator 2. 97 led3-1 ipu/o 3 led indicator 1. 98 led3-0 ipu/o 3 led indicator 0. strap option: pu (default) = select i/o drive strength (8 ma); pd = select i/o drive strength (12 ma). strap to register132 bit [7-6]. 99 gndd gnd ? digital ground. 100 vddio p ? 3.3v, 2.5v, or 1.8v digital v dd for digital i/o circuitry. 101 led2-2 ipu/o 2 led indicator 2. strap option for rqx only: pu (default) = select the device as clock mode in sw5- rmii, 25mhz crystal/oscillator to x1/x2 pins of the device and pins of smrxc and pmrxc output 50 mhz clock. pd = select the device as no rmal mode in sw5-rmii. switch mac5 used only. the input clock from x1/x2 pins is not used, the device?s clock source comes from smtxc/smrefclk pin which the 50 mhz reference clock comes from external 50 mhz clock source, pmrxc can output 50 mhz clock for p5-rmii interface in the normal mode. 102 led2-1 ipu/o 2 led indicator 1. strap option: for port 3 only. pu (default) = enable auto-negotiation. pd = disable auto-negotiation. strap to register60 bit [7]. 103 led2-0 ipu/o 2 led indicator 0. 104 led1-2 ipu/o 1 led indicator 2. 105 led1-1 ipu/o 1 led indicator 1. strap option: for port 3 only. pu (default) = no force flow control, normal operation. pd = force flow control. strap to register60 bit [4]. 106 led1-0 ipu/o 1 led indicator 0. strap option for port 3 only. pu (default) = force half-duplex if auto-negotiation is disabled or fails. pd = force full-duplex if auto negotiation is disabled or fails. strap to register60 bit [5]. 107 mdc ipu all phys mii management (miim register s) data clock. or smi inter- face clock table 2-1: signals - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
? 2016 microchip technology inc. ds00002246a-page 15 ksz8895mqx/rqx/fqx/mlx 108 mdio ipu/o all phys mii management (miim registers) data i/o. or smi interface data i/o note: need an external pull-up when driven. 109 spiq ipu/o all spi serial data output in spi slave mode. note: need an external pull-up when driven. 110 spic/scl ipu/o all (1) input clock up to 25 mhz in spi slave mode, (2) output clock at 61 khz in i 2 c master mode. see ?pin 113.? note: need an external pull-up when driven. 111 sspid/sda ipu/o all (1) serial data input in spi slave mode; (2) serial data input/output in i 2 c master mode. see ?pin 113.? note: need an external pull-up when driven. 112 spis_n ipu all active low. (1) spi data transfer start in spi slave mode. when spis_n is high, the ksz8895mqx/rqx/fqx/mlx is deselected and spiq is held in high impedance state, a high-to-low transition to initiate the spi data transfer. (2) not used in i 2 c master mode. 113 ps1 ipd ? serial bus configuration pin. for this case, if the eeprom is not present, the ksz8895mqx/ rqx/fqx/mlx will start it self with the ps [1:0] = 00 default register values. pin configuration serial bus configuration ps[1:0] = 00 i 2 c master mode for eeprom ps[1:0] = 01 smi interface mode ps[1:0] = 10 spi slave mode for cpu interface ps[1:0] = 11 factory test mode (bist) 114 ps0 ipd ? serial bus configuration pin. see ?pin 113.? 115 rst_n ipu ? reset the ksz8895mqx/r qx/fqx/mlx device. active low. 116 gndd gnd ? digital ground. 117 vddc p ? 1.2v digital core v dd . 118 testen ipd ? nc for normal operation. factory test pin. 119 scanen ipd ? nc for normal ope ration. factory test pin. 120 nc nc ? no connection. leave nc pin floating. 121 x1 i ? 25 mhz crystal clock connection/or 3.3v oscillator input. crystal/ oscillator should be 50 ppm tolerance. 122 x2 o ? 25 mhz crystal clock connection. table 2-1: signals - ksz8895 mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 16 ? 2016 microchip technology inc. note 2-1 p = power supply. i = input. o = output. i/o = bidirectional. gnd = ground. ipu = input with internal pull-up. ipd = input with internal pull-down. ipd/o = input with internal pull-down during reset, output pin otherwise. otri = output tri-stated. note 2-2 nc = do not connect to pcb. pu = strap pin pull-up. pd = strap pull-down. 123 nc nc ? no connection. leave nc pin floating. 124 nc nc ? no connection. leave nc pin floating. 125 ldo_o p ? ldo_o pin connect to gate pin of mosfet if using the internal 1.2v ldo controller. ldo_o pin will be floating if using an external 1.2v ldo. note: when pin126 voltage is greater than the internal 1.2v ldo controller enable threshold (1v), the internal 1.2v ldo controller is enabled and creates a 1.2v out put when using an external mos- fet. when pin126 is pull-down, the internal 1.2v ldo controller is dis- abled and pin 125 tri-stated. 126 in_pwr_- sel i? a resistor divider: enable internal 1.2v ldo controller. pull-down: disable internal 1.2v ldo controller by a pull-down resistor when using an external 1.2v ldo for 1.2v power supply. note: a 4 k ? pull-up and a 2 k ? pull-down resistors divider network is recommended if using the internal 1.2v ldo controller and an external mosfet for 1.2v power. a 100 ? (approximately) resistor between the source and drain pins on the mosfet is highly recommended as well. 127 gnda gnd ? analog ground. 128 test2 nc ? nc for normal operation. factory test pin. table 2-1: signals - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-1 port pin function, note 2-2
? 2016 microchip technology inc. ds00002246a-page 17 ksz8895mqx/rqx/fqx/mlx the ksz8895mqx/rqx/fqx/mlx can function as a ma naged switch or an unmanaged switch. if no eeprom or micro-controller exists, then the ksz 8895mqx/rqx/fqx/mlx wil l operate from its default sett ing. the strap-in option pins can be configured by external pull-up/down resistors an d take effect after power down reset or warm reset. the functions are described in the table below. table 2-2: strap-in options - ksz8895mqx/rqx/fqx/mlx pin number pin name type, note 2-3 description, note 2-4 1mdi-xdisipd disable auto mdi/mdi-x. strap option: pd = (default) = normal operation. pu = disable auto mdi/mdi-x on all ports. 62 pmrxd3 ipd/o phy [5] mii receive bit 3. strap option: pd (default) = enable flow control; pu = disable flow control. 63 pmrxd2 ipd/o phy [5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 64 pmrxd1 ipd/o phy [5] mii/rmii receive bit 1. strap option: pd (default) = drop exce ssive collision packets; pu = does not drop excessive collision packets. 65 pmrxd0 ipd/o phy [5] mii/rmii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 66 pmrxer ipd/o phy [5] mii/rmii receive error. strap option: pd (default) = 1522/1518 bytes; pu = packet size up to 1536 bytes. 67 pcrs ipd/o phy [5] mii carrier sense strap option for port 4 only pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = force full-duplex if auto-negotiation is disabled or fails. refer to register 76. 68 pcol ipd/o phy [5] mii collision detect strap option for port 4 only. pd (default) = no force flow control. pu = force flow control. refer to register 66. 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd (default) = disable switch sw5 -mii/rmii full-duplex flow control; pu = enable switch sw5-mii/rmii full-duplex flow control. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch sw5-m ii/rmii in full-duplex mode; pu = switch sw5-mii/rmii in half-duplex mode. 82 smrxd1 ipd/o switch mii/rmii receive bit 1 strap option: pd (default) = switch sw5-mii/rmii in 100 mbps mode. pu = switch mii/rmii in 10 mbps mode.
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 18 ? 2016 microchip technology inc. 83 smrxd0 ipd/o switch mii/rmii receive bit 0. strap option: led mode pd (default ) = mode 0; pu = mode 1. see ?register 11.? ? mode 0 mode 1 ledx_2 link/activit y 100link/activity ledx_1 full-duplex/col 10link/activity ledx_0 speed full-duplex 86 sconf1 ipd pin 91,86,87 are dual mii/rmii configuration pins for the port 5 mac 5 mii/rmii and phy [5] mii/rmii. sw5-mii supports both mac mode and phy modes. p5-mii supports phy mode only. see pins configu- ration below. pins [91, 86, 87] port 5 switch mac5 sw5- mii/rmii port 5 phy5 p5-mii/rmii 000 disable, otri disable, otri 001 phy mode mii, or rmii disable, otri 010 mac mode mii, or rmii disable, otri 011 phy mode sni disable, otri 100 disable (default) disable (default) 101 phy mode mii, or rmii p5-mii/rmii 110 mac mode mii, or rmii p5-mii/rmii 111 phy mode sni p5-mii/rmii 87 sconf0 ipd dual mii/rmii configuration pin. see pin 86 description. 90 led5-2 ipu/o led5 indicator 2. strap option: aging set up. see ?aging? section pu (default) = aging enable; pd = aging disable. 91 led5-1 ipu/o led5 indicator 1. strap option: pu (default): enable phy [5] mii i/f. pd: tri-state all phy [5] mii output. see ?pin 86 sconf1.? 92 led5-0 ipu/o led5 indicator 0. strap option for port 4 only. pu (default) = enable auto-negotiation. pd = disable auto-negotiation. strap to register76 bit [7]. 95 led4-0 ipu/o led indicator 0. strap option: pu (default) = normal mode. pd = energy detection mode (edpd mode). strap to register 14 bits [4:3]. 98 led3-0 ipu/o led3 indicator 0. strap option: pu (default) = select i/o current drive strength (8 ma); pd = select i/o current drive strength (12 ma). strap to register132 bit [7:6]. table 2-2: strap-in options - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-3 description, note 2-4
? 2016 microchip technology inc. ds00002246a-page 19 ksz8895mqx/rqx/fqx/mlx note 2-3 nc = no connect. ipd = input with internal pull-down. ipu/o = input with internal pull-up du ring reset; output pin otherwise. ipd/o = input with internal pull-down during reset; output pin otherwise. note 2-4 nc = do not connect to pcb. pu = strap pin pull-up. pd = strap pin pull-down. 101 led2-2 ipu/o led2 indicator 2. strap option for ksz8895rqx only: pu (default) = select the device as clock mode in rqx sw5- rmii, 25 mhz crystal to x1/x2 pins of the device and refclk output 50 mhz clock. pd = select the device as normal mode in sw5-rmii. switch mac5 used only. the input clock is useless from x1/x2 pin, the device?s clock comes from smtxc/smrefclk pin, 50 mhz reference clock from external 50 mhz clock source. 102 led2-1 ipu/o led2 indicator 1. strap option for port 3 only. pu (default) = enable auto-negotiation. pd = disable auto-negotiation. strap to register60 bit [7]. 105 led2-0 ipu/o led1 indicator 1. strap option for port 3 only. pu (default) = no force flow control, normal operation. pd = force flow control. st rap to register50 bit [4]. 106 led1-0 ipu/o led1 indicator 0. strap option for port 3 only. pu (default) = force half-duplex if auto-negotiation is disabled or fails. pd = force full-duplex if auto negotiation is disabled or fails. strap to register60 bit [5]. 113 ps1 ipd serial bus configuration pin. for this case, if the eeprom is not present, the ksz8895mqx/rqx/fqx/ mlx will start itself with the ps[1:0] = 00 default register values. pin configuration serial bus configuration ps[1:0] = 00 i 2 c master mode for eeprom ps[1:0] = 01 smi interface mode ps[1:0] = 10 spi slave m ode for cpu interface ps[1:0] = 11 factory test mode (bist) 114 ps0 ipd serial bus configuration pin. see ?pin 113.? 128 test2 nc nc for normal operation. factory test pin. table 2-2: strap-in options - ksz8895mqx/rqx/fqx/mlx (continued) pin number pin name type, note 2-3 description, note 2-4
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 20 ? 2016 microchip technology inc. 3.0 functional description the ksz8895mqx/rqx/fqx/mlx contains fi ve 10/100 physical layer transceivers and five media access control (mac) units with an integrated layer 2 m anaged switch. the device runs in three modes. the first mode is as a five- port integrated switch. the second is as a five-port switch with the fifth port decoupled from the physical port. in this mode, access to the fifth mac is provided through a media i ndependent interface (mii/rmii). this is useful for imple- menting an integrated broadband router. the third mode uses the dual mii/rmii fe ature to recover t he use of the fifth phy. this allows the additional broadband gateway config uration, where the fifth phy may be accessed through the p5-mii/rmii port. the ksz8895mqx/rqx/fqx/mlx has the flexibility to re side in a managed or unmanaged design. in a managed design, a host processor has complete control of the ksz 8895mqx/rqx/fqx/mlx via the spi bus, or the mdc/mdio interface. an unmanaged design is ac hieved through i/o strapping or eeprom programming at system reset time. on the media side, the ksz 8895mqx/rqx/fqx/mlx supports ieee 80 2.3 10base-t, 100b ase-tx on all copper ports with auto mdi/mdix. the ksz8895fqx supports 100base-fx on port 4, and port 3 is configurable either copper as default or fiber. the ksz8895mqx/rqx/fqx/mlx can be us ed as a fully managed five-port switch or hooked up to a microprocessor by its sw-mii/rmii interfaces for any application solutions. physical signal transmission and reception are enhanced thr ough the use of patented analog circuitry and dsp tech- nology that make the design more efficient and allows for r educed power consumption and strong electrical noise immu- nity. major enhancements from the ks8995mq/rq/fmq to the ksz8895mqx/rqx/fqx include more saving power, there is no a limitation for the center taps of the transf ormer in ksz8895mqx/rqx/fqx, ksz8895mq/rq/fmq request the center taps of rx an tx of the trans former not to be tied together for saving power, except using 0.11 m process and add microchip linkmd feature in ksz 8895mqx/rqx/fqx switches. the ksz8 895mqx/rqx/fqx are complete com- patible with ksz8895mq/rq/fmq. 3.1 physical layer transceiver 3.1.1 100base-tx transmit the 100base-tx transmit function performs parallel-to-serial conversion, 4b/5b coding, scramblin g, nrz-to-nrzi con- version, mlt3 encoding and transmission. the circuit starts with a parallel-to-serial conversion, which converts the mii data from the mac into a 125 mhz serial bit stream. the data and control stream is then converted into 4b/5b coding followed by a scrambler. the serialized data is further co nverted from nrz-to-nrzi format, and then transmitted in mlt3 current output. the output current is set by an external 1% 12.4 k ? resistor for the 1:1 transformer ratio. it has a typical rise/fall time of 4 ns and complies with the ansi tp-pmd standard regarding amplitude balance, overshoot, and timing jitter. the wave-s haped 10base-t out put is also incorporated in to the 100base-tx transmitter. 3.1.2 100base-tx receive the 100base-tx receiver function perfor ms adaptive equalizat ion, dc restoration, mlt3-t o-nrzi conversion, data and clock recovery, nrzi-to-nrz co nversion, descrambling, 4b/5b decoding, and serial-to-parallel conversion. the receiv- ing side starts with the equalization filter to compensate for intersymbol interfer ence (isi) over the twisted pair cable. since the amplitude loss and phase distortion is a function of the length of the cable, the equalizer has to adjust its char- acteristics to optimize the performance. in this design, th e variable equalizer will make an initial estimation based on comparisons of incoming signal strength against some know n cable characteristics, then tunes itself for optimization. this is an ongoing process and can self-adjust against environmental chan ges such as temperature variations. the equalized signal then goes through a dc restoration and data conversion blo ck. the dc restoration circuit is used to compensate for the effect of baseline wander and improve the dynamic range. the different ial data conversion circuit converts the mlt3 format back to nrzi. the slicing threshold is also adaptive. the clock recovery circuit extracts the 125 mhz clock from the edges of the nrzi signal. this recovered clock is then used to convert the nrzi signal into the nrz format. the signal is then sent through the de-scrambler followed by the 4b/5b decoder. finally, the nrz serial data is converted to the mii format and provided as the input data to the mac. 3.1.3 pll clock synthesizer the ksz8895mqx/rqx/fqx/mlx generates 125 mhz, 83 mhz, 41 mhz, 25 mh z, and 10 mhz clocks for system tim- ing. internal clocks are generated from an external 25 mhz crystal or oscillator.
? 2016 microchip technology inc. ds00002246a-page 21 ksz8895mqx/rqx/fqx/mlx 3.1.4 scrambler/de-scrambler (100base-tx only) the purpose of the scrambler is to spread the power spectrum of the signal in order to reduce emi and baseline wander. the data is scrambled through the use of an 11-bit wide linear feedback shift register (lfsr). this can generate a 2047- bit non-repetitive sequence. the receiver will then descrambl e the incoming data stream with the same sequence at the transmitter. 3.1.5 100base-fx operation 100base-fx operation is very simila r to 100base-tx operation except that the scrambl er/descrambler and mlt3 encoder/decoder are bypassed on transmis sion and reception. in this mode, the auto-negotiation feature is bypassed since there is no standard that supports fiber auto-negotiation. 3.1.6 100base-fx signal detection the physical port runs in 100base-fx fiber mode for the port 3 and port 4 of the ksz8895fqx. this signal is internally referenced to 1.2v. the fiber module interface should be set by a voltage divider such that fxsdx ?h? is above this 1.2v reference, indicating signal detect, and fxsdx ?l? is below the 1.2v reference to indicate no signal. there is no auto- negotiation for 100base- fx mode, the ports must be forced to either fu ll or half-duplex for the fiber ports. note that strap-in options support port 3 and port 4 to disable auto- negotiation, force 100base-fx sp eed, force duplex mode, and force flow control for ksz8895fqx with unmanaged mode. 3.1.7 100base-fx far end fault far end fault occurs when the signal detection is logically false from the receive fiber module. when this occurs, the transmission side signals the other end of the link by sending 84 1s followed by a zero in the idle period between frames. the far end fault may be disabled through register settings. 3.1.8 10base-t transmit the output 10base-t driver is incorporat ed into the 100base-t driver to allow transmission with the same magnetics. they are internally wave-shaped and pre-emphasized into outputs with typical 2.3v am plitude. the harmonic contents are at least 27 db below the fundamental when driv en by an all-ones manchester-encoded signal. 3.1.9 10base-t receive on the receive side, input buffer and level detecting squelch circuits are employed. a differential input receiver circuit and a pll perform the decoding function. the manchester-encoded data stream is separated into clock signal and nrz data. a squelch circuit rejects signals with levels less than 400 mv or with short pulse widths in order to prevent noises at the rxp or rxm input from falsely triggering the decoder. when the input exceeds the squelch limit, the pll locks onto the incoming signal and the ksz8864cnx/rmnub decodes a data frame. the receiver clock is maintained active during idle periods in between data reception. 3.1.10 mdi/mdi-x auto crossover to eliminate the need for crossover cables between similar devices, the ksz8895mqx/rqx/fqx/mlx supports hp auto mdi/mdi-x and ieee 802.3u standard mdi/mdi-x aut o crossover. hp auto mdi/mdi-x is the default. the auto-sense function detects remote transmit and receive pa irs and correctly assigns tran smit and receive pairs for the ksz8895mqx/rqx/fqx/mlx device. this feature is ex tremely useful when end users are unaware of cable types and saves on an additional uplink configuration connecti on. the auto-crossover feature can be disabled through the port control registers or miim ph y registers. the ieee 802.3u stan dard mdi and mdi-x definitions are: table 3-1: mdi/mdi-x pin definitions mdi mdi-x rj-45 pins signals rj-45 pins signals 1 td+ 1 rd+ 2td?2rd? 3 rd+ 3 td+ 6 rd? 6 td?
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 22 ? 2016 microchip technology inc. 3.1.10.1 straight cable a straight cable connects an mdi device to an mdi-x device, or an mdi-x device to an mdi device. figure 3-1 depicts a typical straight cable connection between a nic card (mdi) and a switch, or hub (mdi-x). 3.1.10.2 crossover cable a crossover cable connects an mdi device to another mdi device, or an mdi-x device to another mdi-x device. figure 3-2 shows a typical crossover cable connection between two switches or hubs (two mdi-x devices). 3.1.11 auto-negotiation the ksz8895mqx/rqx/fqx/mlx conforms to the auto-negotiation protocol as described by the 802.3 committee. auto-negotiation allows unshielded twisted pair (utp) link partners to select the highest common mode of operation. link partners advertise their capabilities to each other, and then compare their own cap abilities with those they received from their link partners. the highest speed and duplex setting that is common to the two lin k partners is selected as the mode of operation. auto-negotiation is supported for the copper ports only. the following list shows the speed and duplex opera tion mode from highest to lowest priority. ? priority 1: 100base-tx, full-duplex figure 3-1: typical straight cable connection figure 3-2: typical crossover cable connection
? 2016 microchip technology inc. ds00002246a-page 23 ksz8895mqx/rqx/fqx/mlx ? priority 2: 100base-tx, half-duplex ? priority 3: 10base-t, full-duplex ? priority 4: 10base-t, half-duplex if auto-negotiation is not supported or the ksz8895mqx/rqx/fqx/mlx link partner is forced to bypass auto-negotia- tion, the ksz8895mqx/rqx/fqx/mlx sets it s operating mode by observing the signal at its receiver. this is known as parallel detection, and allows the ksz8895mqx/rqx/fqx/mlx to establish link by listening for a fixed signal protocol in the absence of auto-negotiation advertisement protocol. th e auto-negotiation link up process is shown in figure 3-3 . figure 3-3: auto-ne gotiation flow chart 3.1.12 linkmd ? cable diagnostics the linkmd ? feature utilizes time domain reflectometry (tdr) to analyze the cabling plant for common cabling prob- lems such as open circuits, short circuits, and impedance mismatches. linkmd works by sending a pulse of known amplitude and duration down the mdi and mdi-x pairs and then analyzes the shape of the reflected signal. timing the pulse duration gives an indication of the distance to the cabling fault with maximum distance of 200m and accuracy of 2m. internal ci rcuitry displays the tdr information in a user-readable dig- ital format. note: cable diagnostics are only valid for copper connections and do not support fiber optic operation. 3.1.12.1 access linkmd ? is initiated by accessing the phy s pecial control/status registers {26, 42, 58, 74, 90} and the linkmd result registers {27, 43, 59, 75, 91} for ports 1, 2, 3, 4 and 5 re spectively; and in conjunction with the registers port control 12 and 13 for ports 1, 2, 3, 4 and 5 respectively to disable auto-negotiation and auto mdi/mdi-x. alternatively, the miim phy registers 0 and 1d can be used for linkmd ? access also. start auto-negotiation force link setting listen for 10base-t link pulses listen for 100base-tx idles attempt auto- negotiation link mode set bypass auto- negotiation and set link mode link mode set? parallel operation no yes yes no join flow
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 24 ? 2016 microchip technology inc. 3.1.12.2 usage the following is a sample procedure for using li nkmd with registers {26, 27, 28, 29} on port 1. 1. disable auto-negotiation by writing a ?1? to register 28 (0x1c), bit [7]. 2. disable auto mdi/mdi-x by writing a ?1? to register 29 (0x1d), bit [2] to enable manual control over the differential pair used to transmi t the linkmd? pulse. 3. a software sequence set up to the internal registers for linkmd only, see an example below. 4. start cable diagnostic test by writing a ?1? to regist er 26 (0x1a), bit [4]. this enable bit is self-clearing. 5. wait (poll) for register 26 (0x1a), bit [4] to return a ?0?, and indicating cable diagnostic test is completed. 6. read cable diagnostic test results in register 26 (0x1a), bits [6:5]. the results are as follows: 00 = normal condition (valid test) 01 = open condition detected in cable (valid test) 10 = short condition detected in cable (valid test) 11 = cable diagnostic test failed (invalid test) the ?11? case, invalid test, occurs when the ksz8895 is unable to shut down the link partner. in this instance, the test is not run, because it would be impossible for the ksz8895 to det ermine if the detected signal is a reflection of the signal generated or a signal from another source. 7. get distance to fault by concatenating register 26 (0x1a), bit [0] and register 27 (0x1b), bits [7:0]; and multiplying the result by a constant of 0.4. the distance to the cable fault can be determined by the following formula: d (distance to cable fault) = 0.4 x {(regist er 26, bit [0]),(register 27, bits [7:0])} d (distance to cable fault) is expressed in meters. concatenated value of registers 26 bit [0] and 27 bit [7:0] should be converted to decimal before decrease 26 and mul- tiplying by 0.4. the constant (0.4) may be calibrated for different cabling co nditions, including cables with a velocity of propagation that varies significantly from the norm. for port 2, 3, 4, 5 and for the miim phy registers, linkmd ? usage is similar. 3.1.12.3 a linkmd example the following is a sample procedure for using linkmd on port 1. //set force 100/full and force mdi-x mode //w is write the register. r is read register w 1c ff w 1d 04 //set internal registers temp orary adjustment for linkmd w 47 b0 w 27 00 w 37 04 (03-port 1, 04-port 2, 05- port 3, 06-port 4, 07-port 5) w 47 80 (bit7-port 1, bit6-port 2, bit5-port 3, bit4-port 4, bit3-port 5) w 27 00 w 37 00 //enable linkmd testing with fault cable for port 1 w 1a 10 r 1a r 1b //result analysis based on the values of the register 0x1a and 0x1b for port 1: //the register 0x1a bits [6-5] are for the open or the short detection. //the register 0x1a bit [0] + the register 0x1b bits [7-0] = vct_fault [8-0] //the distance to fault is a bout 0.4 x {vct_fault [8-0]}
? 2016 microchip technology inc. ds00002246a-page 25 ksz8895mqx/rqx/fqx/mlx note: after testing ends, set all registers above to their defaul t values. the default values are ?00? for the register (0x37) and the register (0x47) 3.1.13 on-chip termination resistors the ksz8895mqx/rqx/fqx/mlx r educes the board cost and simplifies the bo ard layout by using on-chip termination resistors for all ports and rx/tx differential pairs without t he external termination resistors. the combination of the on- chip termination and internal biasing will save power consum ption as compared to using external biasing and termina- tion resistors, and the transformer will not consume power any more. the center tap of t he transformer does not need to be tied to the analog power and does not tie the center taps together between rx and tx pairs for its application. 3.1.14 internal 1.2v ldo controller the ksz8895mqx/rqx/fqx/mlx reduces board cost and simplifi es board layout by integrat ing an internal 1.2v ldo controller to drive a low cost mosfet to supply the 1.2v core power voltage for a single 3.3v power supply solution. the internal 1.2v ldo controller can be disabled by pin 126 in_pwr_sel pull-down in order to use an external 1.2v ldo. 3.2 power the ksz8895 device has two options for the power circuit in t he design. one is a single 3.3v supply with 3.3v i/o power by using internal 1.2v ldo controller and one mosfet for 1.2v analog and digital power. another one is using external 1.2v ldo and provide 1.2v power for 1.2v analog and digital power. ta b l e 3 - 2 illustrates the various voltage options and requirements of the device. 3.2.1 using internal 1.2v ldo controller the preferred method of using the internal 1.2v ldo controller with an external mosfet is illustrated in the figure below. the number of capacitors, ferrite beads (fb), values of capacitors, and exact placement of components will depend on the specific design. the 1.2v rail from the drai n pin of the mosfet to vddar pin 3 is the 1.2v ldo feed- back path. this connection should be as short as possible and there should be no series components on this feedback path. when the voltage of pin 126 is just over 1v, along with the 3.3v power-up, the in ternal 1.2v ldo controller is enabled. the 1.2v ldo regulator (internal 1.2v ldo controlle r plus an external mosfet) requests about 3.0v voltage at the ?s? pin of mosfet when the internal 1.2v ldo controller is just enabl ed, the resistor divider will meet this require- ment. table 3-2: voltages and power pins power signal name device pins requirement vddat 9, 18, 24, 37 3.3v analog power to the transceiver of the device. vddio 59, 77, 100 choice of 1.8v or 2.5v or 3.3v fo r the i/o circuits. these input power pins power the i/o circuitry of the device. vddar 3, 15, 31 filtered 1.2v analog voltage. this is where filtered 1.2v is fed back into the device to power the analog block. vddc 50, 89, 117 filtered 1.2v digital voltage. this pi n feeds 1.2v to digital circuits within the analog block. gnda 2, 6, 12, 16, 21, 27, 30, 34, 127 analog ground. gndd 49, 58, 76, 88, 99, 116 digital ground.
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 26 ? 2016 microchip technology inc. 3.2.2 using external 1.2v ldo regulator the ksz8895mqx/rqx/fqx/mlx can use an external 1.2v ld o regulator too. when use an external 1.2v ldo reg- ulator solution, the pin 126 should be pulled down by the pull- down resistor to disable the in ternal 1.2v ldo controller. there is no a power sequence request if all power rails voltage are ready after the power-up reset done. using the external 1.2v ldo regulator is illustrated in figu re 9. the number of capacitors, values of capacitors, and exact placement of components will depend on the specific design. figure 3-4: recommended 1.2v power connection using internal 1.2v ldo controller figure 3-5: recommended 1.2v power connection using an external 1.2v regulator fb 125 vddat 9,18,24,37 3,15,31 3.3v 1.2v 126 vddar vddc 50,89,117 vddio 59,77,100 gnda gndd 2,6,12,16,21,27,30,34,127 49,58,76,88,99,116 n n d s g  47f fb 125 vddat 9,18,24,37 3,15,31 126 vddar vddc 50,89,117 vddio 59,77,100 gnda gndd 2,6,12,16,21,27,30,34,127 49,58,76,88,99,116 n 1.2v
? 2016 microchip technology inc. ds00002246a-page 27 ksz8895mqx/rqx/fqx/mlx 3.3 power management the ksz8895mqx/rqx/fqx/mlx supports a full chip hard ware power down mode. when the pwrdn pin 47 is inter- nally activated low (pin pwrdn = 0), the entire chip is powe red down. if this pin is de-asse rted, the chip will be reset internally. the ksz8895mqx/rqx/fqx/mlx can also use multiple power le vels of 3.3v, 2.5v, or 1.8v for vddio to support dif- ferent i/o voltage. the ksz8895mqx/rqx/fqx/mlx supports enhanced power mana gement in a low power state, with energy detection to ensure low power dissipation during device idle period s. there are five operation modes under the power manage- ment function which are controlled by the register 14 bit [4:3] and the port register control 13 bit 3 as shown below: register 14 bits [4:3] = 00 normal operation mode register 14 bits [4:3] = 01 energy detect mode register 14 bits [4:3] = 10 soft power down mode register 14 bits [4:3] = 11 power saving mode the port register 29, 45, 61, 77, 93 control 13 bit3 = 1 are for the port based power-down mode. table 3-3 indicates all internal function blocks? status u nder four different power management operation modes. 3.3.1 normal operation mode this is the default setting bits [4:3] = 00 in register 14 after chip power-up or hardware reset. when ksz8895mqx/ rqx/fqx/mlx is in normal operation mode, all pll clo cks are running, phy and mac are on, and the host interface is ready for cpu read or write. during normal operation mode, the host cpu can set the bits [4:3] in register 14 to change the current normal operation mode to any one of the other three power management operation modes. 3.3.2 energy detect mode energy detect mode provides a mechanism to save mo re power than in the normal operation mode when the ksz8895mqx/rqx/fqx/mlx port is not connected to an active link partner. in this mode, the device will save more power when the cables are unplugged. if the cable is not plugged in, the device can automatically enter a low power state, the energy detect mode. in this mode, the device will ke ep transmitting 120 ns width pulses at a rate of 1 pulse per second. once activity resumes due to plugging a cable in or attempting by the far end to establish link, the device can automatically power up to normal power state in energy detect mode. energy detect mode consists of two states, normal power stat e and low power state. while in low power state, the device reduces power consumption by disabling all circuitry except th e energy detect circuitry of the receiver. the energy detect mode is entered by setting bits [4:3] = 01 in register 14. when the ksz8895mqx/rqx/fqx/mlx is in this mode, it will monitor the cable energy. if there is no energy on the cable for a time longer than the pre-configured value at bit [7:0] go-sleep time in register 15, the device will go into low power state. when ksz8895mqx/rqx/fqx/mlx is in low power state, it will keep monitoring the cable energy. once the energy is detected fr om the cable, the device will enter normal power state. when the device is at normal power state, it is able to transmit or receive packet from the cable. table 3-3: internal function block status function blocks power management operation modes normal mode power saving mode energy detect mode soft power-down mode internal pll clock enabled enabled disabled disabled tx/rx phy enabled rx unused block disabled energy detect at rx disabled mac enabled enabled disabled disabled host interface enabled enabled disabled disabled
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 28 ? 2016 microchip technology inc. 3.3.3 soft power-down mode the soft power down mode is entered by setting bits [4 :3] = 10 in register 14. when ksz8895mqx/rqx/fqx/mlx is in this mode, all pll clocks are disabled , also all of phys and t he macs are off. any dummy host access will wake-up this device from current soft power down mode to normal operation mode and internal reset will be issued to make all internal registers go to the default values. 3.3.4 power saving mode the power saving mode is entered when auto-negotiation mode is enabled, the c able is disconnected, and by setting bits [4:3] = 11 in register 14. when ksz8895mqx/rqx/fqx/ mlx is in this mode, all pll clocks are enabled, mac is on, all internal register values will not change, and the host interface is ready for cpu read or write. in this mode, it mainly controls the phy transceiver on or off, based on li ne status to achieve power saving. the phy continues to trans- mit, only turning off the unused receiver block. once activity resumes, due to plugging a cable or attempting by the far end to establish link, the ksz8895mqx/rqx/fqx/mlx can aut omatically enable the phy to power up to normal power state from power saving mode. during power saving mode, the host cpu can set bits [4:3] in register 14 to change the current power saving mode to any one of the other three pow er management operation modes. 3.3.5 port-based power-down mode in addition, the ksz8895mqx/rqx/fqx/mlx features a per-port power-down mode. to save power, a phy port that is not in use can be powered down via the registers po rt control 13 bit 3, or mi im phy registers 0 bit 11. 3.4 switch core 3.4.1 address look-up the internal look-up table stores mac addresses and their associated informati on. it contains a 1k unicast address table plus switching information. the ksz8895mqx/rqx/f qx/mlx is guaranteed to lear n 1k addresses and distin- guishes itself from a hash-based look-up table, which, depending on the operating envir onment and probabilities, may not guarantee the absolute number of addresses it can learn. 3.4.2 learning the internal look-up engine updates its table with a new entry if the following conditions are met: ? the received packet?s source address (sa) does not exist in the look-up table. ? the received packet is good; the packet has no receiving errors and is of legal length. the look-up engine inserts the qualified sa into the table, along with the port number and time stamp. if the table is full, the last entry of the table is deleted first to make room for the new entry. 3.4.3 migration the internal look-up engine also monitors whether a station is moved. if this occurs, it updates the table accordingly. migration happens when the following conditions are met: ? the received packet?s sa is in the table, but th e associated source port information is different. ? the received packet is good; the packet has no receiving errors and is of legal length. the look-up engine will update the existing record in the table with the new source port information. 3.4.4 aging the look-up engine will update the time stamp information of a record whenever the corresponding sa appears. the time stamp is used in the aging process. if a record is not updated for a period of time, the look-up engine will remove the record from the table. the look-up engine constantly performs the aging pr ocess and will continuously remove aging records. the aging period is 300 75 second s. this feature can be enabled or disa bled through register 3 or by external pull-up or pull-down resistors on led[5][2]. s ee ?register 3? section for more information.
? 2016 microchip technology inc. ds00002246a-page 29 ksz8895mqx/rqx/fqx/mlx 3.4.5 forwarding the ksz8895mqx/rqx/fqx/mlx will forward packets using an algorithm that is depicted in the following flowcharts. figure 3-6 shows stage one of the forwarding algorithm where the search engine looks up the vlan id, static table, and dynamic table for the destination address, and comes up with ?port to forward 1? (ptf1). ptf1 is then further modified by the spanning tree, igmp snooping, port mirroring, and po rt vlan processes to come up with ?port to forward 2? (ptf2), as shown in figure 3-7 . this is where the packet will be sent. the ksz8895mqx/rqx/fqx/mlx will not forward the following packets: ? error packets. these include framing errors, fcs errors, alignment errors, and illegal size packet errors. ? 802.3x pause frames. the ksz8895mqx /rqx/fqx/mlx will intercept these pa ckets and perform the appropriate actions. ? ?local? packets. based on destination address (da) look-up. if the destination port from the look-up table matches the port where the packet was from, the packet is defined as ?local.? 3.4.6 switching engine the ksz8895mqx/rqx/fqx/mlx features a high-performance switching engine to move data to and from the mac?s packet buffers. it operates in store and forward mode, while the efficient switching mechanism reduces overall latency. the ksz8895mqx/rqx/fqx/mlx has a 64 kb internal frame buffer. this resource is shared between all five ports. there are a total of 512 buffers available. each buffer is sized at 128 bytes. 3.4.7 media access co ntrol (mac) operation the ksz8895mqx/rqx/f qx/mlx strictly abides by ieee 802.3 standards to maximize compatibility. 3.4.8 inter-pac ket gap (ipg) if a frame is successfully transmitted, the 96-bit time ip g is measured between the two consecutive mtxen. if the cur- rent packet is experiencing collision, the 96-bit ti me ipg is measured from mcrs and the next mtxen. 3.4.9 back-off algorithm the ksz8895mqx/rqx/fqx/mlx implements the ieee standar d 802.3 binary exponential back-off algorithm, and optional ?aggressive mode? back-off. after 16 collisions , the packet will be optionally dropped, depending on the chip configuration in register 3. see ?register 3? for additional information. 3.4.10 late collision if a transmit packet experiences collisions after 512- bit times of the transmission, the packet will be dropped. 3.4.11 illegal frames the ksz8895mqx/rqx/fqx/mlx discards frames less than 64 bytes and can be programmed to accept frames up to 1536 bytes in register 4. for special applications, the ksz8895mqx/rqx/fqx/mlx can also be programmed to accept frames up to 1916 bytes in register 4. since t he ksz8895mqx/rqx/fqx/mlx supports vlan tags, the max- imum sizing is adjusted when these tags are present. 3.4.12 flow control the ksz8895mqx/rqx/fqx/mlx supports standard 802.3x flow control frames on both transmit and receive sides. on the receive side, if the ksz8895mqx/rqx/fqx/mlx re ceives a pause control frame, the ksz8895mqx/rqx/fqx/ mlx will not transmit the next normal frame until the timer, spec ified in the pause control frame, expires. if another pause frame is received before the current timer expires, the ti mer will be updated with the new value in the second pause frame. during this period (being flow controlled), only flow control packets from the ksz8895mqx/rqx/fqx/mlx will be transmitted. on the transmit side, the ksz8895mqx/rq x/fqx/mlx has intelligent and efficient ways to determine when to invoke flow control. the flow control is based on availability of th e system resources, including avai lable buffers, available trans- mit queues and available receive queues. the ksz8895mqx/rqx/fqx/mlx flow controls a port that ha s just received a packet if the destination port resource is busy. the ksz8895mqx/rqx/fqx/mlx issues a flow co ntrol frame (xoff), containing the maximum pause time defined in ieee standa rd 802.3x. once the resource is freed up, the ksz8895mqx/r qx/fqx/mlx sends out the other flow control frame (xon) with zero pause ti me to turn off the flow control (turn on transmission to the port). a hysteresis feature is also provided to prev ent over-activation and deactivati on of the flow control mechanism.
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 30 ? 2016 microchip technology inc. the ksz8895mqx/rqx/fqx/mlx fl ow controls all ports if the receive queue becomes full. figure 3-6: destination address look-up flow chart - stage 1 '
? 2016 microchip technology inc. ds00002246a-page 31 ksz8895mqx/rqx/fqx/mlx the ksz8895mqx/rqx/fqx/mlx will not forward the following packets: ? error packets. these include framing errors, frame c heck sequence (fcs) errors, alignment errors, and illegal size packet errors. ? ieee 802.3x pause frames. ksz8895mqx/rqx/fqx/mlx intercepts these packets and performs full-duplex flow control accordingly. ? ?local? packets. based on destination address (da) look-up, if the destination port from the look-up table matches the port from which the packet origi nated, the packet is defined as local. 3.4.13 half-duplex back pressure the ksz8895mqx/rqx/fqx/mlx also provides a half-duplex back pressure op tion (note: this is not in ieee 802.3 standards). the activation and deactivation conditions are t he same as the ones given for full-duplex mode. if back pres- sure is required, the ksz8895mqx/rqx/fqx/mlx sends pream bles to defer the other st ation's transmission (carrier sense deference). to avoid jabber and excessive deference as defined in ieee 802.3 standards, after a certain period of time, the ksz8895mqx/rq x/fqx/mlx discontinues carrier sense but raises it quickly after it drops packets to inhibit other transmissions. this short silent time (no carrier sense) is to prevent other stations from sending out packets and keeps other stations in a carrier sense-deferred state. if the port has packets to send during a back pressure situation, the carrier sense-type back pressure is interrupted and those packets are transmit ted instead. if there are no more pack- ets to send, carrier sense-type back pre ssure becomes active again until switch re sources are free. if a collision occurs, the binary exponential back-off algorithm is skipped and ca rrier sense is generated immediately, reducing the chance of further colliding and mainta ining carrier sense to preven t reception of packets. to ensure no packet loss in 10base- t or 100base-tx half-duplex modes, the user must enable the following: figure 3-7: destination address resolution flow chart - stage 2
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 32 ? 2016 microchip technology inc. ? aggressive back-off (register 3, bit 0) ? no excessive collision drop (register 4, bit 3) ? back pressure (register 4, bit 5) these bits are not set as the default because they are not the ieee standard. 3.4.14 broadcast storm protection the ksz8895mqx/rqx/fqx/mlx has an inte lligent option to protec t the switch system from receiving too many broad- cast packets. broadcast packets are normally forwarded to all ports except the source port and thus use too many switch resources (bandwidth and available space in transmi t queues). the ksz8895mqx/rqx/ fqx/mlx has the option to include ?multicast packets? for storm control. the broadcas t storm rate parameters are programmed globally and can be enabled or disabled on a per port basis. the rate is bas ed on a 50 ms (0.05s) interval for 100bt and a 500 ms (0.5s) interval for 10bt. at the beginning of each interval, the counter is cleared to zero and the rate limit mechanism starts to count the number of bytes during the interval. the rate defin ition is described in registers 6 and 7. the default setting for registers 6 and 7 is 0x4a (74 decimal). this is equal to a rate of 1%, calculated as follows: 148,800 frames/sec 50 ms (0.05s)/interval 1% = 74 frames/interval (approx.) = 0x4a. 3.4.15 mii interface operation the media-independent interface (mii) is specified by the ieee 802.3 committee and provides a common interface between physical layer and mac layer devices. the ksz8895mqx/rqx/fqx/mlx provides two such interfaces. the p5-mii interface is used to connect to the fifth phy, where as the sw-mii interface is used to connect to the fifth mac. each of these mii interfaces contains two distinct groups of signals, one for transmission and the other for receiving. 3.4.16 port 5 phy 5 p5-mii/rmii interface the media independent interface (mii) is specified by the ieee 802.3 committee and provides a common interface between the physical layer and mac layer devices. the re duced media independent interf ace (rmii) specifies a low pin count mii. the ksz8895mq x/rqx/fqx/mlx provides two such interfac es for mac5 and phy5. the port 5 phy5 p5-mii/rmii interface is used to connect to the fifth phy, wh ere as the sw-mii/rmii interface is used to connect to the fifth mac. the ksz8895mqx/fqx/mlx support p5-mii, the ksz8895rqx supports p5-rmii. each of these mii/rmii interfaces contains two distinct groups of signal s, one for transmission and the other for receiving. ta b l e 3 - 4 describes the signals used in the phy [5] p5-mii/rmii interface. the p5-mii interface operates in phy mode only. table 3-4: port 5 ph y p5-mii/rmii signals mii signal description ksz8895mqx/fqx/ mlx p5-mii ksz8895mqx/ fqx/mlx mii signal type ksz8895rqx p5-rmii ksz8895rqx rmii signal type mtxen transmit enable pmtxen i pmtxen i mtxer transmit error pmtxer i ? ? mtxd3 transmit data bit 3 pmtxd[3] i ? ? mtxd2 transmit data bit 2 pmtxd[2] i ? ? mtxd1 transmit data bit 1 pmtxd[1] i pmtxd[1] i mtxd0 transmit data bit 0 pmtxd[0] i pmtxd[0] i mtxc transmit clock pmtxc o pmrefclk/ pmtxc i mcol collision detection pcol o ? ? mcrs carrier sense pcrs o ? ? mrxdv receive data valid pmrxdv o pmrxdv o mrxer receive error pmrxer o pmrxer o mrxd3 receive data bit 3 pmrxd[3] o ? ? mrxd2 receive data bit 2 pmrxd[2] o ? ? mrxd1 receive data bit 1 pmrxd[1] o pmrxd[1] o mrxd0 receive data bit 0 pmrxd[0] o pmrxd[0] o mrxc receive clock pmrxc o pmrxc o
? 2016 microchip technology inc. ds00002246a-page 33 ksz8895mqx/rqx/fqx/mlx 3.4.17 port 5 mac 5 sw5-mii inte rface for the ksz8895mqx/fqx/mlx table 3-5 shows two connection manners: ? the first is an external mac connects to sw5-mii phy mode. ? the second is an external phy connects to sw5-mii mac mode. please see the pin [91, 86, 87] descri ptions for configuration details for t he mac mode and phy mode. sw5-mii works with 25 mhz clock for 100base-tx, sw5-m ii works with 2.5 mhz clock for 10base-t. the switch mii interface operates in either mac mode or phy mode for ksz8895mqx/fqx/ mlx. these interfaces are nibble-wide data interfaces, so they run at one-quarter the network bit rate (not encoded). additional signals on the transmit side indicate when data is valid or when an error occurs during transmission. likewise, the receive side has indicators that convey when the data is valid and without physical layer errors. for half-duplex operation, there is a sig- nal that indicates a collision has occurred during transmission. note that the signal mrxer is not pr ovided on the mii-sw interface for phy mode operation and the signal mtxer is not provided on the sw-mii interface for mac mode operat ion. normally mrxer would indicate a receive error coming from the physical layer device. mtxer would indicate a transmit error from the mac device. these signals are not appropriate for this configuration. fo r phy mode operation with an external ma c, if the device interfacing with the ksz8895mqx/fqx/mlx has an mrxer pin, it should be tied low. for mac mode operation with an external phy, if the device interfacing with the ksz8895mqx/fqx/mlx has an mtxer pin, it should be tied low. table 3-5: switch mac5 mii signals ksz8895mqx/fqx/mlx phy mode connection description ksz8895mqx/fqx/mlx mac mode connection external mac sw5-mii signals type external phy sw5-mii signals type mtxen smtxen input transmit enable mtxen smrxdv output mtxer smtxer input transmit error mtxer not used not used mtxd3 smtxd[3] input transmit data bit 3 mtxd3 smrxd[3] output mtxd2 smtxd[2] input transmit data bit 2 mtxd2 smrxd[2] output mtxd1 smtxd[1] input transmit data bit 1 mtxd1 smrxd[1] output mtxd0 smtxd[0] input transmit data bit 0 mtxd0 smrxd[0] output mtxc smtxc output transmit clock mtxc smrxc input mcol scol output collision detection mcol scol input mcrs scrs output carrier sense mcrs scrs input mrxdv smrxdv output receive data valid mrxdv smtxen input mrxer not used output receiv e error mrxer smtxer input mrxd3 smrxd[3] output receive data bit 3 mrxd3 smtxd[3] input mrxd2 smrxd[2] output receive data bit 2 mrxd2 smtxd[2] input mrxd1 smrxd[1] output receive data bit 1 mrxd1 smtxd[1] input mrxd0 smrxd[0] output receive data bit 0 mrxd0 smtxd[0] input mrxc smrxc output receive clock mrxc smtxc input
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 34 ? 2016 microchip technology inc. 3.4.18 port 5 mac 5 switch sw5-rm ii interface for the ksz8895rqx the reduced media independent interfac e (rmii) specifies a low pin count media independent interface (mii). the ksz8895rqx supports rmii interface at port 5 switch side and provides a comm on interface at mac5 layer in the device, and has the following key characteristics: ? supports 10 mbps and 100 mbps data rates. ? uses a single 50 mhz clock reference (provided internally or externally): in internal mode, the chip provides a ref- erence clock from the smrxc pin to the smtxc pin and provides the clock to the opposite clock input pin for rmii interface. in external mode, the chip receives 50 mh z reference clock from an external oscillator or opposite rmii interface. ? provides independent 2-bit wide (bi-bit) transmit and receive data paths. ksz8895rqx supports mac5 rmii interfaces at the switch side: ? for the detail of sw5-rmii (port 5 mac5 rmii) signals connection see the table below: ? the ksz8895rqx can provide a 50 mhz reference clock fo r both mac to mac and mac to phy rmii interfaces when sw5-rmii is used in the clock mode of the device (d efault with strap pin led2_2 internal pull-up for the clock mode). ? the ksz8895rqx can also receive a 50 mhz reference clock from an external 50 mhz clock source or opposite rmii to sw5-rmii smtxc pin when the device is set to normal mode (the strap pin led2_2 is pulled down). when the device is strapped to normal mode by pin led2 _2 pull-down, the reference clock comes from smtxc which will be used as the device?s clock source. the external 25mhz crystal clock from pins x1/x2 will be ignored. note that in normal mode, the 50 mhz clock from smtxc will be used as the clock source for whole device. the phy5 pmtxc/pmrefclk pin can?t be used as the clock sour ce for whole device. the pin of pmtxc/pmrefclk can receive the 50 mhz clock from pmrxc when the device is strapped to normal mode and an external 50 mhz reference clock comes in from pin smtxc. in normal mode, the 50 mh z clock on pin smrxc can be disabled by register, and the pmrxc 50 mhz clock can be used when p5-rmii interface is used. there is a register 12 bit 6 to monitor the status of the device for the clock mode or normal mode. when using an external 50 mhz clock source as rmii reference clock, the ksz8895rqx should be set to normal mode by pulling down its led2_2 strap-in pin first before power up reset or warm reset. the normal mode of the ksz8895rqx device will start to work when it gets the 50 mhz referenc e clock from pin smtxc/smrefclk from an external 50 mhz clock source. for the rmii connection examples, please re fer to the application note included in the design kit. table 3-6: port 5 mac5 sw5-rmii connection sw5-rmii mac-to-mac connection (phy mode) description sw5-rmii mac-to-phy connection (mac mode) external mac signal ( note 3-1 ) sw signal type external phy signal ( note 3-1 ) sw signal type ref_clk xsmrxc output (clock mode with 50 mhz); normal mode w/o connection reference clock ? smtxc/ smrefclk input (clock comes from smrxc in clock mode or external clock in normal mode) crs_dv smrxdv/ smcrsdv output carrier sense/ receive data valid crs_dv smtxen input rxd1 smrxd[1] output receive data bit 1 rxd1 smtxd[1] input rxd0 smrxd[0] output receive data bit 0 rxd0 smtxd[0] input tx_en smtxen input transmit data enable tx_en smrxdv/ smcrsdv output txd1 smtxd[1] input transmit data bit 1 txd1 smrxd[1] output txd0 smtxd[0] input transmit data bit 0 txd0 smrxd[0] output (not used) (not used) ? receive error (not used) (not used) ?
? 2016 microchip technology inc. ds00002246a-page 35 ksz8895mqx/rqx/fqx/mlx note 3-1 mac/phy mode in rmii is different from mac/phy mo de in mii. there is no strap pin and register configuration request in rm ii; just follow the signal connections in the table. 3.4.19 sni interface operation the serial network interface (sni) is compatible with some controllers used for network layer protocol processing. this interface can be directly connected to these types of device s. the signals are divided into two groups, one for transmis- sion and the other for reception. the signals involved are described in ta b l e 3 - 7 . this interface is a bit-wide data interface, so it runs at the network bit rate (not encoded). an additional signal on the transmit side indicates when data is valid. likewise, the rece ive side has an indicator that shows when the data is valid. for half-duplex operation there is a signal that indicates a collision has occurred during transmission. 3.5 advanced functionality 3.5.1 qos priority support the ksz8895mqx/rqx/fqx/mlx provides quality of service (qos) for applications such as voip and video confer- encing. the ksz8895mqx/rqx/fqx/mlx offers one, two, or fo ur priority queues per port by setting the registers port control 9 bit 1 and the registers port contro l 0 bit 0, the 1/2/4 queues split as follows: ? [registers port control 9 bit 1, control 0 bit 0] = 00 single output queue as default. ? [registers port control 9 bit 1, contro l 0 bit 0] = 01 egress port can be spli t into two priority transmit queues. ? [registers port control 9 bit 1, contro l 0 bit 0] = 10 egress port can be split into four priority transmit queues. the four priority transmit queue is a new feature in the ksz8895mqx/rqx/f qx/mlx. the queue 3 is the highest pri- ority queue and queue 0 is the lowest pr iority queue. the port registers xxx control 9 bit 1 and the registers port control 0 bit 0 are used to enable split transmit queues for ports 1, 2, 3, 4 and 5, respectively. if a port's transmit queue is not split, high priority and low priority packets have equal priority in the transmit queue. there is an additional option to either always deliver high priority packets first or to use programmable weighted fair queuing for the four priority queue scale by the registers port control 10, 11, 12 and 13 (default value are 8, 4, 2, 1 by their bit [6:0]. register 130 bit [7:6] prio_2q[1:0] is used when the 2 queue configuration is selected, these bits are used to map the 2-bit result of ieee 802.1p from the re gisters 128, 129 or tos/diffserv mapping from registers 144-159 (for 4 queues) into two-queue mode with priority high or low. ? smtxc/ smrefclk input (clock comes from smrxc in clock mode or external clock in normal mode) reference clock ref_clk smrxc output (clock mode with 50 mhz); normal mode w/o connection table 3-7: sni signals sni signal description ksz8 895mqx/rqx/fqx/mlx signal txen transmit enable smtxen txd serial transmit data smtxd[0] txc transmit clock smtxc col collision detection scol crs carrier sense smrxdv rxd serial receive data smrxd[0] rxc receive clock smrxc table 3-6: port 5 mac5 sw5-rmii connection (continued) sw5-rmii mac-to-mac connection (phy mode) description sw5-rmii mac-to-phy connection (mac mode) external mac signal ( note 3-1 ) sw signal type external phy signal ( note 3-1 ) sw signal type
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 36 ? 2016 microchip technology inc. please see the descriptions of register 130 bits [7:6] for detail. 3.5.1.1 port-based priority with port-based priority, each ingress port is individually cla ssified as a priority 0-3 receiving port. all packets received at the priority 3 receiving port are marked as high priority an d are sent to the high-priorit y transmit queue if the corre- sponding transmit queue is split. the port registers control 0 bits [4:3] is used to enable port-based priority for ports 1, 2, 3, 4 and 5, respectively. 3.5.1.2 802.1p-based priority for 802.1p-based priority, the ksz8895 mqx/rqx/fqx/mlx examines the ingre ss (incoming) packets to determine whether they are tagged. if tagg ed, the 3-bit priority field in the vlan tag is retrieved and compared against the ?priority mapping? value, as specified by the registers 128 and 129, both register 128/129 can map 3- bit priority field of 0-7 value to 2-bit result of 0-3 priority levels. the ?priority mapping? value is programmable. figure 3-8 illustrates how the 802.1p priority field is embedded in the 802.1q vlan tag. 802.1p-based priority is enabled by bit [5] of the registers port control 0 for ports 1, 2, 3, 4 and 5, respectively. the ksz8895mqx/rqx/fqx/mlx provides the option to insert or remove the priority tagged frame's header at each individual egress port. this header, consisting of the two-by te vlan protocol id (vpid) and the two-byte tag control information field (tci), is also referred to as the ieee 802.1q vlan tag. tag insertion is enabled by bit [2] of the registers port control 0 and the register port control 8 to select which source port (ingress port) pvid can be inserted on the egress port for po rts 1, 2, 3, 4 and 5, respectively. at the egress port, untagged packets are tagged with the ingress port?s default tag. the default tags are programmed in the registers port control 3 and control 4 for ports 1, 2, 3, 4 and 5, respectively. the ksz8895mqx/rqx/fqx/mlx will not add tags to already tagged packets. tag removal is enabled by bit [1] of the registers port control 0 for ports 1, 2, 3, 4 and 5, respectively. at the egress port, tagged packets will have their 802.1q vlan tags removed. the ksz8895mqx/rqx /fqx/mlx will not modify untagged packets. the crc is recalculated for both tag insertion and tag removal. 802.1p priority field re-mapping is a qos feature that allows the ksz8 895mqx/rqx/fqx/mlx to set the ?user pri- ority ceiling? at any ingress port by the register port control 2 bit 7. if the ingress packet?s priority field has a higher priority value than the default tag?s priority field of t he ingress port, the packet?s priority field is replaced with the defa ult tag?s priority field. figure 3-8: 802.1p priority field format
? 2016 microchip technology inc. ds00002246a-page 37 ksz8895mqx/rqx/fqx/mlx 3.5.1.3 diffserv-based priority diffserv-based priority uses the tos registers (registers 144 to 159) in the advanced co ntrol registers section. the tos priority control registers implement a fully decoded, 128-b it differentiated services code point (dscp) register to determine packet priority from the 6-bit tos field in the ip h eader. when the most significant six bits of the tos field are fully decoded, 64 code points for dscp result. these are co mpared with the corresponding bits in the dscp register to determine priority. 3.5.2 spanning tree support port 5 is the designated port for spanning tree support. the other ports (port 1 - port 4) can be configured in one of the five spanning tr ee states via ?transmit enable,? ?receive enable,? and ?learning disable? register settings in registers 18, 34, 50, and 66 for ports 1, 2, 3, and 4, respectively. the following description shows the port setting and software ac tions taken for each of the five spanning tree states. disable state: the port should not forward or receive any packets. learning is disabled. port setting: "transmit enable = 0, rece ive enable = 0, learning disable = 1." software action: the processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the stat ic table with ?overriding bit? set) and the processor should discard those packets. note: the processor is connected to po rt 5 via mii interface. address learning is disabled on the port in this state. blocking state: only packets to the proc essor are forwarded. learning is disabled. port setting: "transmit enable = 0, rece ive enable = 0, learning disable = 1" software action: the processor should not send any packets to the port(s) in this stat e. the processor should program the ?static mac table? with the entries that it needs to re ceive (e.g., bpdu packets). the ?overriding? bit should also be set so that the switch will forward thos e specific packets to the processor. address learning is disabled on the port in this state. listening state: only packets to and from the processor are forwarded. learning is disabled. port setting: "transmit enable = 0, rece ive enable = 0, learning disable = 1.? software action: the processor should progr am the static mac table with the entries that it needs to receive (e.g. bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state, see the ta i l ta g g i n g m o d e section for details. address learning is disabled on the port in this state. learning state: only packets to and from the processor are forwarded. learning is enabled. port setting: ?transmit enable = 0, receive enable = 0, learning disable = 0.? software action: the processor should prog ram the static mac table with the entrie s that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state, see the ta i l ta g g i n g m o d e section for details. address learning is enabled on the port in this state. forwarding state: packets are forwarded and received normally. learning is enabled. port setting: ?transmit enable = 1, receive enable = 1, learning disable = 0.? software action: the processor should prog ram the static mac table with the entrie s that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state, see the ta i l ta g g i n g m o d e section for details. address learning is enabled on the port in this state. 3.5.3 rapid spanning tree support there are three operational states of the discarding, learning, and forwarding assigned to each port for rstp: discarding ports do not participate in the acti ve topology and do not learn mac addresses. discarding state: the state includes three states of the disable, blocking, and listening of stp. port setting: "transmit enable = 0, rece ive enable = 0, learning disable = 1."
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 38 ? 2016 microchip technology inc. software action: the processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the static table with ?ove rriding bit? set) and the processor should discard those packets. when disabling the port?s learning cap ability (learning disable = ?1?), set the register 1 bit 5 and bit 4 will flush rapidly with the port related entries in the dynamic mac table and static mac table. note: processor is connected to port 5 via mii interface. address learning is disabled on the port in this state. ports in learning states learn mac addresses, but do not forward user traffic. learning state: only packets to and from the processor are forwarded. learning is enabled. port setting: ?transmit enable = 0, receive enable = 0, learning disable = 0.? software action: the processor should prog ram the static mac table with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state, see the ta i l ta g g i n g m o d e section for details. address learning is enabled on the port in this state. ports in forwarding states fully participat e in both data forwarding and mac learning. forwarding state: packets are forwarded and received normally. learning is enabled. port setting: ?transmit enable = 1, receive enable = 1, learning disable = 0.? software action: the processor should prog ram the static mac table with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state, see the ta i l ta g g i n g m o d e section for details. address learning is enabled on the port in this state. rstp uses only one type of bpdu called rstp bpdus. they are similar to st p configuration bpdus with the excep- tion of a type field set to ?version 2? for rstp and ?version 0? for stp, and a flag field carrying additional information. 3.5.4 tail tagging mode the tail tag is only seen and used by the port 5 interface, which should be connected to a processor by sw5-mii/rmii interface. the one byte tail tagging is used to indicate the source/destination port in port 5. only bit [3-0] are used for the destination in the tail tagging byte. other bits are not used. the tail tag feature is enabled by setting register 12 bit 1. figure 3-9: tail tag frame format table 3-8: tail tag rules ingress to port 5 (host to ksz8895mqx/rqx/fqx/mlx) bit [3:0] destination 0,0,0,0 reserved 0,0,0,1 port 1 (direct forward to port 1) 0,0,1,0 port 2 (direct forward to port 2) 0,1,0,0 port 3 (direct forward to port 3) 1,0,0,0 port 4 (direct forward to port 4) 1,1,1,1 port 1, 2, 3, and 4 (direct forward to ports 1, 2, 3, and 4) bit [7:4] ? 0,0,0,0 queue 0 is used at destination port 0,0,0,1 queue 1 is used at destination port 0,0,1,0 queue 2 is used at destination port
? 2016 microchip technology inc. ds00002246a-page 39 ksz8895mqx/rqx/fqx/mlx 3.5.5 igmp support there are two parts involved to support the internet group management protocol (igmp) in layer 2. the first part is igmp snooping, the second part is this igmp packet to be sent back to the subscribed port. describe them as follows. 3.5.5.1 igmp snooping the ksz8895mqx/rqx/fqx/mlx traps igmp packets and forw ards them only to the processor (port 5 sw5-mii/ rmii). the igmp packets are identified as ip packets (eit her ethernet ip packets, or ieee 802.3 snap ip packets) with ip version = 0x4 and protocol version number = 0x2. set register 5 bit [6] to ?1? to enable igmp snooping. 3.5.5.2 igmp send back to the subscribed port once the host responds the received igmp packet, the host should know the original igmp ingress port and send back the igmp packet to this port only; otherwise this igmp pa cket will be broadcast to all ports to downgrade the perfor- mance. enable the tail tag mode, the host will know the igmp packet received port from tail tag bits [1:0] and can send back the response igmp packet to this subscribed port by setting the bits [3:0] in the tail tag. enable ?tail tag mode? by setting register 12 bit 1. 3.5.6 port mirroring support ksz8895mqx/rqx/fqx/mlx supports ?port mirror? comprehensively as: ? ?receive only? mirror on a port - all the packets received on the port will be mirrored on the sniffer port. for example, port 1 is programmed to be ?rx sniff,? and port 5 is programmed to be the ?sniffer port.? a packet, received on port 1, is destined to port 4 after the internal look-up. the ksz8895mqx/rqx/fqx/m lx will forward the packet to both port 4 and port 5. ksz8895mqx/rqx/fqx/mlx can optionally forward even ?bad? received packets to port 5. ? ?transmit only? mirror on a port - all the packets transmitted on the port will be mirrored on the sniffer port. for example, port 1 is programmed to be ?tx sniff,? and port 5 is programmed to be the ?sni ffer port.? a packet, received on any of the ports, is destined to port 1 after the internal look-up. t he ksz8895mqx/rqx/fqx/mlx will forward the packet to both ports 1 and 5. ? ?receive and transmit? mirror on a port - all the packets received on port a and transmitted on po rt b will be mirrored on the sniffer port. to turn on the ?and? feature, set register 5 bit 0 to 1. for example, port 1 is programmed to be ?rx sniff,? port 2 is pro- grammed to be ?transmit sniff,? and port 5 is programmed to be the ?sniffer port.? a packet, received on port 1, is destined to port 4 after the internal look-up. the ksz8895mqx/rqx/fqx/mlx will forward the packet to port 4 only, since it does not meet the ?and? condition. a packet, received on port 1, is destined to port 2 after the internal look-up. the ksz 8895mqx/rqx/fqx/mlx will forward the packet to both port 2 and port 5. multiple ports can be selected to be ?rx sn iffed? or ?tx sniffed.? and any port can be selected to be the ?sniffer port.? all these per port features can be selected through register 17. 0,0,1,1 queue 3 is used at destination port x,1,x,x whatever send packets to specified port in bit [3:0] 1,x,x,x bit [6:0] will be ignored as no rmal (address look-up for destination) egress from port 5 (ksz8895mqx/rqx/fqx/mlx to host) bit [1:0] source 0,0 port 1 (packets from port 1) 0,1 port 2 (packets from port 2) 1,0 port 3 (packets from port 3) 1,1 port 4 (packets from port 4) table 3-8: tail tag rules (continued) ingress to port 5 (host to ksz8895mqx/rqx/fqx/mlx)
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 40 ? 2016 microchip technology inc. 3.5.7 vlan support the ksz8895mqx/rqx/fqx/mlx supports 128 active vlan s and 4096 possible vids specified in ieee 802.1q. ksz8895mqx/rqx/fqx/mlx provides a 12 8-entry vlan table, which correspond to 4096 possible vids and converts to fid (7 bits) for address look-up max 128 active vlans. if a non-tagged or null-vid-tagged packet is received, then the ingress port vid is used for look-up when 802.1q is enabled by the global register 5 control 3 bit 7. in the vlan mode, the look-up process starts from vlan table look-up to determine whether the vid is valid. if the vid is not valid, the packet will then be dropped and its address will not be learned. if the vid is valid, fid is retrieved for further look- up by the static mac table or dynamic mac table. fi d+da is used to determine the destination port. ta b l e 3 - 9 describes the different actions in different situat ions of da and fid+da in the static mac table and dynamic mac table after the vlan table finish a look-up action. fid+sa is used for learning purposes. ta b l e 3 - 1 0 also describes learning in the dynamic mac table when the vlan table has done a look -up in the static mac table without a valid entry. advanced vlan features are also s upported in ksz8895mqx/rqx/fq x/mlx, such as ?vlan ingress filtering? and ?discard non pvid? defined in bits [6:5] of the port register control 2. these features c an be controlled on a port basis. 3.5.8 rate limiting support the ksz8895mqx/rqx/fqx/mlx provides a fine resolution hard ware rate limiting. the rate step is 64 kbps when the rate limit is less than 1 mbps rate for 100bt or 10bt. the rate step is 1 mbps when the rate limit is more than 1 mbps rate for 100bt or 10bt (refer to data rate selection table wh ich follow the end of the port register queue 0-3 ingress/ egress limit control section). the rate limit is independently on the ?receive side? and on the ?transmit side? on a per port basis. for 10base-t, a rate setting above 10 mbps means the rate is not li mited. on the receive side, the data receive rate for each priority at each port can be limited by setting up ingress rate contro l registers. on the transmit side, the data transmit rate for each priority queue at each po rt can be limited by setting up egress rate control reg- isters. the size of each frame has options to include mini mum ifg (inter frame gap) or preamble byte, in addition to the data field (from packet da to fcs). 3.5.8.1 ingress rate limit for ingress rate limiting, ksz8895mqx/rqx/fqx/mlx provides options to selectively choose frames from all types, multicast, broadcast, and flooded unicast frames by bits [3 -2] of the port rate limit control register. the ksz8895mqx/ rqx/fqx/mlx counts the data rate from those selected ty pe of frames. packets are dropped at the ingress port when the data rate exceeds the specified ra te limit or the flow control takes ef fect without packet dropped when the ingress rate limit flow control is enabled by the port rate limit contro l register bit 4. the ingress rate limiting supports the port- table 3-9: fid+da look up in vlan mode da found in static mac table use fid flag? fid match? da+fid found in dynamic mac table action no do not care do not care no broadcast to the membership ports defined in the vlan table bit [11:7]. no do not care do not care yes send to the destination port defined in the dynamic mac table bit [58:56]. yes 0 do not care do not care send to the destination port(s) defined in the static mac table bit [52:48]. yes 1 no no broadcast to the membership ports defined in the vlan table bit [11:7]. yes 1 no yes send to the destination port defined in the dynamic mac table bit [58:56]. yes 1 yes do not care send to the destination port(s) defined in the static mac table bit [52:48]. table 3-10: fid+sa look up in vlan mode sa+fid found in dynamic mac table action no the sa+fid will be learned into the dynamic table. yes time stamp will be updated.
? 2016 microchip technology inc. ds00002246a-page 41 ksz8895mqx/rqx/fqx/mlx based, 802.1p and diffserv-based priorities, t he port-based priority is fixed priority 0-3 selection by bits [4-3] of the reg- ister port control 0. the 802.1p and diffserv-based priority c an be mapped to priority 0-3 by default of the register 128 and 129. in the ingress rate limit, set register 135 global c ontrol 19 bit 3 to enable queue-based rate limit if using two- queue or four-queue mode. all related ingress ports and egr ess port should be split to two-queue or four-queue mode by the registers port co ntrol 9 and control 0. the four-queue mode will use q0-q3 for priority 0-3 by bit [6-0] of the port register ingress limit control 1-4. the two-queue mode will us e q0-q1 for priority 0-1by bit [6-0] of the port register ingress limit control 1-2. the priority levels in the packets of the 802.1p and diffserv can be programmed to priority 0-3 by the register 128 and 129 for a re-mapping. 3.5.8.2 egress rate limit for egress rate limiting, the leaky bucket algorithm is applied to each output prio rity queue for shaping output traffic. interframe gap is stretched on a per frame base to generat e smooth, non-burst egress traf fic. the throughput of each output priority queue is limited by the egress rate specified by the data rate selection table followed the egress rate limit control registers. if any egress queue receives more traffic than the specified egress rate throughput, packets may be accumulated in the output queue and packet memory. after the memory of the queue or the port is used up, packet dropping or flow control will be triggered. as a result of conges tion, the actual egress rate may be domin ated by flow control/dropping at the ingress end, and may be therefore slight ly less than the specified egress rate. th e egress rate limiting supports the port- based, 802.1p and diffserv-based priorities, t he port-based priority is fixed priority 0-3 selection by bits [4-3] of the reg- ister port control 0. the 802.1p and diffserv-based priority c an be mapped to priority 0-3 by default of the register 128 and 129. in the egress rate limit, set register 135 global cont rol 19 bit 3 for queue-based rate limit to be enabled if using two-queue or four-queue mode. all related ingress ports and egress port should be split to two-queue or four-queue mode by the registers port control 9 and control 0. the fo ur-queue mode will use q0-q3 for priority 0-3 by bit [6-0] of the port register egress limit control 1- 4. the two-queue mode will use q0-q1 for priority 0-1by bit [6-0] of the port reg- ister egress limit control 1-2. the priori ty levels in the packets of the 802. 1p and diffserv can be programmed to priority 0-3 by the register 128 and 129 for a re-mapping. when the egress rate is limited, just use one queue per port for the egress port rate limit. the priority packets will be based upon the data rate selection table (see tables 13 and 14). if the egress rate limit uses more than one queue per port for the egress port rate limit, then the highest priority packets will be based upon the data rate selection table for the rate limit exact number. other lower priority packet rates will be limited based upon 8:4: 2:1 (default) priority ratio, which is based on the highest priority rate. the transmit queue priority ratio is programmable. to reduce congestion, it is good practice to make sure the egress bandwidth exceeds the ingress bandwidth. 3.5.8.3 transmit queue ratio programming in transmit queues 0-3 of the egress port, the default priority ratio is 8:4:2:1. the priority ratio can be programmed by the registers port control 10, 11, 12 and 13. when the trans mit rate exceeds the ratio limit in the transmit queue, the transmit rate will be limited by the transmit queue 0-3 ratio of the register port control 10, 11, 12 and 13. the highest priority queue will not be limited. other lower priority queues will be limited based on the transmit queue ratio. 3.5.9 filtering for self- address, unknown unicast/m ulticast address and unknown vid pac ket/ip multicast enable self-address filtering, the unknown unicast packet fi ltering and forwarding by the register 131 global control 15. enable unknown multicast packet filtering and forwarding by the register 132 global control 16. enable unknown vid packet filtering and forwar ding by the register 133 global control 17. enable unknown ip multicast packet filtering and forwarding by the register 134 global control 18. this function is very useful in preventin g packets that could degrade the quality of the port in applications such as voice over internet protoc ol (voip) and the daisy chain connection. 3.5.10 configuration interface 3.5.10.1 i 2 c master serial bus configuration if a 2-wire eeprom exists, then the ksz8895mqx/rqx/fqx/mlx can perform more advanced features like broadcast storm protection and rate cont rol. the eeprom should have the entire valid co nfiguration data from register 0 to reg- ister 255 defined in the ?memory map,? except the chipid = 0 in the register1 and the status registers. after reset, the ksz8895mqx/rqx/fqx/mlx will start to read all 255 registers se quentially from the eepr om. the configuration access time (t prgm ) is less than 30 ms, as shown in figure 3-10 .
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 42 ? 2016 microchip technology inc. to configure the ksz8895mqx/rqx/fqx/mlx with a pre-configured eeprom use the following steps: 1. at the board level, connect pin 110 on the ksz8895 mqx/rqx/fqx/mlx to the sc l pin on the eeprom. con- nect pin 111 on the ksz8895mqx/rqx/fqx/mlx to the sda pin on the eeprom. 2. a [2-0] address pins of eeprom should be tied to ground for a [2-0] = ?000? to be iden tified by the ksz8895mqx/ rqx/fqx/mlx. 3. set the input signals ps[1:0] (pins 113 and 114, re spectively) to ?00.? this puts the ksz8895mqx/rqx/fqx/ mlx serial bus configuration into i 2 c master mode. 4. be sure the board-level reset signal is connect ed to the ksz8895mqx/rqx/fqx/mlx reset signal on pin115 (rst_n). 5. program the contents of the eeprom before placing it on t he board with the desired configuration data. note that the first byte in the eeprom must be ?95? for the loading to occur properly. if this value is not correct, all other data will be ignored. 6. place eeprom on the board and power up the board. assert the active-low board level reset to rst_n on the ksz8895mqx/rqx/fqx/mlx. after the reset is de-asse rted, the ksz8895mqx/rqx /fqx/mlx will begin read- ing configuration data from the eeprom . the configuration access time (t prgm ) is less than 30 ms. please note that for proper operation, make sure that pin 47 (pwrdn_n) is not asse rted during the reset operation. 3.5.10.2 spi slave serial bus configuration the ksz8895mqx/rqx/fqx/mlx can also act as a spi slav e device. through the spi, t he entire feature set can be enabled, including ?vlan,? ?igmp snooping,? ?mib counters,? etc. the external master device can access any register from register 0 to register 255 randomly. th e system should configure all the des ired settings be fore enabling the switch in the ksz8895mqx/rqx/fqx/mlx. to enabl e the switch, write a ?1? to register 1 bit 0. two standard spi commands are supported (00000011 for ?r ead data,? and 00000010 for ?write data?). to speed configuration time, the ksz8895mqx/rqx/fqx/ mlx also supports multiple reads or writes. after a byte is written to or read from the ksz8895mqx/rqx/fqx/mlx, the internal address counter automatically increments if the spi slave select signal (spis_n) continues to be dr iven low. if spis_n is kept low after the first byte is read, the next byte at the next address will be shifted out on spiq. if spis_n is kept low afte r the first byte is written, bits on the master out slave input (spid) line will be written to the next address. asse rting spis_n high terminates a read or write operation. this means that the spis_n signal must be asserted high and then low again before issu ing another command and address. the address counter wraps back to zero once it reaches t he highest address. therefore th e entire regist er set can be written to or read from by issuing a single command and address. the default spi clock speed is 12.5 mhz. the ksz8895mqx/ rqx/fqx/mlx is able to support a spi bus up to 25 mhz (set register 12 bit [5:4] = 0x10). a high performance spi master is recommended to prevent internal counter overflow. to use the ksz8895mqx/rqx/fqx/mlx spi: 1. at the board level, connect ksz8895mqx/rqx/fqx/mlx pins as follows: figure 3-10: eeprom conf iguration ti ming diagram table 3-11: spi connections pin number signal name microprocessor signal description 112 spis_n spi slave select
? 2016 microchip technology inc. ds00002246a-page 43 ksz8895mqx/rqx/fqx/mlx 2. set the input signals ps[1:0] (pins 113 and 114, respective ly) to ?10? to set the serial configuration to spi slave mode. 3. power up the board and assert a reset signal. after reset wa it 100 s, the start switch bit in register 1 will be set to ?0?. configure the desired settings in the ksz8895mq x/rqx/fqx/mlx before setting the start switch to ?1.' 4. write configuration to r egisters using a typical spi write data cycle as shown in figure 3-11 or spi multiple write as shown in figure 3-13 . note that data input on spid is r egistered on the rising edge of spic. 5. registers can be read and configur ation can be verified with a typica l spi read data cycle as shown in figure 3- 12 or a multiple read as shown in figure 3-14 . note that read data is regist ered out of spiq on the falling edge of spic. 6. after configuration is written and verified, write a ?1? to register 1 bit 0 to begin ksz8895mqx/rqx/fqx/mlx switch operation. 7. all registers can be set on-the-fly af ter writing ?1? to register 1 bit 0. 110 scl spi clock 111 spid/sda master out slave input 109 spiq master in slave output figure 3-11: spi write data cycle figure 3-12: spi read data cycle table 3-11: spi connections pin number signal name microprocessor signal description
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 44 ? 2016 microchip technology inc. 3.6 mii management (miim) interface the ksz8895mqx/rqx/fqx/ mlx supports the standard ieee 802.3 mii manageme nt interface, also known as the management data input/ou tput (mdio) interface. this interface allows upper-layer devices to monitor and control the states of the ksz8895mqx/rqx/ fqx/mlx. an external device with mdc/mdio capability is used to read the phy sta- tus or configure the phy settings. further details on the miim interface are found in clause 22.2.4.5 of the ieee 802.3u specification. the miim interface consists of the following: ? a physical connection that incorporates the data line (pin108 mdio) and the clock line (pin107 mdc). ? a specific protocol that o perates across the aforementioned physical c onnection that allows an external controller to communicate with the ksz 8895mqx/rqx/fqx/mlx device. ? access to a set of eight 16-bit registers, consisting of 8 standard miim registers [0:5h] , 1d and 1f miim registers figure 3-13: spi multiple write figure 3-14: spi multiple read
? 2016 microchip technology inc. ds00002246a-page 45 ksz8895mqx/rqx/fqx/mlx per port. the miim interface can operate up to a maximum clock speed of 10 mhz mdc clock. table 3-12 depicts the mii management interface frame format. the miim interface does not have access to all the confi guration registers in the ksz 8895mqx/rqx/fqx/mlx. it can only access the standard miim register s. see ?miim registers?. the spi inte rface and mdc/mdio smi mode, on the other hand, can be used to access all registers with the entire ksz8895mqx/r qx/fqx/mlx feature set. 3.7 serial management interface (smi) the smi is the ksz8895mqx/rqx/fqx/mlx non-standard miim interface that provides access to all ksz8895mqx/ rqx/fqx/mlx configuration registers. th is interface allows an external device with mdc/mdio interface to completely monitor and control the states of the ksz8895mq x/rqx/fqx/mlx. the smi interface consists of the following: ? a physical connection that incorporates the data line (mdio) and the clock line (mdc). ? a specific protocol that o perates across the aforementioned physical c onnection that allows an external controller to communicate with the ksz 8895mqx/rqx/fqx/mlx device. ? access all ksz8895mqx/rqx/fqx/mlx configuration register s. register access includes the global, port and advanced control registers 0-255 (0x00 ? 0xff), and indi rect access to the standard miim registers [0:5] and custom miim registers [29, 31]. the smi interface can operate up to a ma ximum clock speed of 10 mhz mdc clock. table 3-13 depicts the smi frame format. smi register read access is selected when op code is set to ?10? and bits [2:1] of the phy address is set to ?11?. the 8-bit register address is the co ncatenation of {phy address bits [4:3], phy address bits [0], reg address bit [4:0]}. ta is turn-around bits. ta bits [1:0] are ?z0? means the proces sor mdio pin is changed to input hi-z from output mode and the followed ?0? is the read response from device, as the s witch configuration registers ar e 8-bit wide, only the lower 8 bits of data bits [15:0] are used smi register write access is selected when op code is set to ?01? and bits [2:1] of the phy address is set to ?11?. the 8-bit register address is the co ncatenation of {phy address bits [4:3], phy address bits [0], reg address bit [4:0]}. ta bits [1:0] are set to ?10?, as the switch configuration register s are 8-bit wide, only the lower 8 bits of data bits [15:0] are used. to access the ksz8895mqx/rqx/fqx/mlx register s 0-255 (0x00 - 0xff), the following applies: ? phyad [4, 3, 0] and regad [4:0] are concatenated to fo rm the 8-bit address; that is, {phyad [4, 3, 0], regad [4:0]} = bits [7:0] of the 8-bit address. ? registers are 8 data bits wide. for read operation, data bi ts [15:8] are read back as ze roes. for write operation, data bits [15:8] are not defined, and hence can be set to either zeroes or ones. smi register access is the same as t he miim register access, except for the register access requirements presented in this section. table 3-12: mii manag ement frame format ? preamble start of frame read/ write op code phy address bits[4:0] reg address bits[4:0] ta data bits[15:0] idle read 32 1?s 01 10 aaaaa rrrrr z0 dddddddd_dddddddd z write 32 1?s 01 01 aaaaa rrrrr 10 dddddddd_dddddddd z table 3-13: serial management interface (smi) frame format ? preamble start of frame read/ write op code phy address bits [4:0] reg address bits [4:0] ta data bits[15:0] idle read 32 1?s 01 10 rr11r rrrrr z0 0000_0000_dddd_dddd z write 32 1?s 01 01 rr11r rrrrr 10 xxxx_xxxx_dddd_dddd z
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 46 ? 2016 microchip technology inc. 4.0 register descriptions table 4-1: registers descriptions offset description decimal hex 0-1 0x00-0x01 chip id registers. 2-13 0x02-0x0d global control registers. 14-15 0x0e-0x0f power down management control registers. 16-20 0x10-0x14 port 1 control registers. 21-23 0x15-0x17 port 1 reserved (factory test registers). 24-31 0x18-0x1f port 1 co ntrol/status registers. 32-36 0x20-0x24 port 2 control registers. 37-39 0x25-0x27 port 2 reserved (factory test registers). 40-47 0x28-0x2f port 2 co ntrol/status registers. 48-52 0x30-0x34 port 3 control registers. 53-55 0x35-0x37 port 3 reserved (factory test registers). 56-63 0x38-0x3f port 3 co ntrol/status registers. 64-68 0x40-0x44 port 4 control registers. 69-71 0x45-0x47 port 4 reserved (factory test registers). 72-79 0x48-0x4f port 4 co ntrol/status registers. 80-84 0x50-0x54 port 5 control registers. 85-87 0x55-0x57 port 5 reserved (factory test registers). 88-95 0x58-0x5f port 5 co ntrol/status registers. 96-103 0x60-0x67 reserved (factory testing registers). 104-109 0x68-0x6d mac address registers. 110-111 0x6e-0x6f indirect access control registers. 112-120 0x70-0x78 indirect data registers. 121-123 0x79-0x7b reserved (factory testing registers). 124-125 0x7c-0x7d port interrupt registers. 126-127 0x7e-0x7f reserved (factory testing registers). 128-135 0x80-0x87 global control registers. 136 0x88 switch self-test control register. 137-143 0x89-0x8f qm global control registers. 144-145 0x90-0x91 tos priority control registers. 146-159 0x92-0x9f tos priority control registers. 160-175 0xa0-0xaf reserved (factory testing registers). 176-190 0xb0-0xbe port 1 control registers. 191 0xbf reserved (factory testing regist er): transmit queue remap base register. 192-206 0xc0-0xce port 2 control registers. 207 0xcf reserved (factory testing register). 208-222 0xd0-0xde port 3 control registers. 223 0xdf reserved (factory testing register). 224-238 0xe0-0xee port 4 control registers. 239 0xef reserved (factory testing register). 240-254 0xf0-0xfe port 5 control registers. 255 0xff reserved (factory testing register).
? 2016 microchip technology inc. ds00002246a-page 47 ksz8895mqx/rqx/fqx/mlx 4.1 global registers table 4-2: global re gister descriptions address name description mode default register 0 (0x00): chip id0 7 - 0 family id chip family. ro 0x95 register 1 (0x01): chip id1/start switch 7 - 4 chip id 0100 = ksz8895mqx/fqx/mlx 0110 = ksz8995rqx ro 0x4 is for mqx, fqx, and mlx 0x6 is for rqx 3 - 1 revision id revision id, see register 137 (0x89) ro 0x0 0start switch 1 = start the chip when external pins (ps1, ps0) = (1,0) or (0,1). note: in (ps1,ps0) = (0,0) mode, the chip will start automatically, after trying to read the external eeprom. if eeprom does not exist, the chip will use default values for all internal registers. if eeprom is present, the contents in the eeprom will be checked. the switch will check: (1) register 0 = 0x95. (2) register 1 [7:4] = 0x0. if this check is ok, th e contents in the eeprom will override chip register default values. 0 = chip will not start switch when external pins (ps1, ps0) = (1,0) or (0,1). note: (ps1, ps0) = (1,1) for factory test only. r/w 0 register 2 (0x02): global control 0 7 new back-off enable new back-off algorithm designed for unh 1 = enable 0 = disable r/w 0 6 reserved reserved. ro 0 5 flush dynamic mac table flush the entire dynamic mac table for rstp 1 = trigger the flush dynamic mac table operation. this bit is self-clear 0 = normal operation note: all the entries associated with a port that has its learning capability being turned off (learning disable) will be flushed. if you want to flush the entire table, all ports learning capability must be turned off. r/w (sc) 0 4 flush static mac table flush the matched entries in static mac table for rstp 1 = trigger the flush static mac table operation. this bit is self-clearing 0 = normal operation note: the matched entry is defined as the entry whose forwarding ports field contains a single port and mac address with unicast. this port, in turn, has its learning capability being turned off (learn- ing disable). per port, multiple entries can be quali- fied as matched entries. r/w (sc) 0
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 48 ? 2016 microchip technology inc. 3 enable phy mii/rmii 1, enable phy p5-mii/rmii interface (default). note: if not enabled, the switch will be tri-state all outputs. r/w 1 pin led[5][1] strap option. pd(0): isolate. pu(1): enable. note: led[5][1] has internal pull-up (pu). 2 reserved n/a do not change. ro 1 1 unh mode 1, the switch will drop packets with 0x8808 in t/l field, or da=01-80-c2-00-00-01. 0, the switch will drop packets qualified as ?flow control? packets. r/w 0 0 link change age 1, link change from ?link? to ?no link? will cause fast aging (<800 s) to age address table faster. after an age cycle is complete, the age logic will return to normal (300 75 seconds). note: if any port is unplugged, all addresses will be automatically aged out. r/w 0 register 3 (0x03): global control 1 7 pass all frames 1, switch all packets including bad ones. used solely for debugging purpose. works in conjunction with sniffer mode. r/w 0 6 2k byte packet support 1 = enable support 2k byte packet 0 = disable support 2k byte packet r/w 0 5 ieee 802.3x transmit flow control disable 0, will enable transmit flow control based on an result. 1, will not enable transmit flow control regardless of an result. r/w 0 pin pmrxd3 strap option. pd(0): enable tx flow control (default). pu(1): disable tx/rx flow control. note: pmrxd3 has internal pull-down. 4 ieee 802.3x receive flow control disable 0, will enable receive flow control based on an result. 1, will not enable receive flow control regardless of an result. note: bit 5 and bit 4 default values are controlled by the same pin, but they can be programmed independently. r/w 0 pin pmrxd3 strap option. pd (0): enable rx flow control (default). pu(1): disable tx/rx flow control. note: pmrxd3 has internal pull-down. 3 frame length field check 1, will check frame length field in the ieee packets if the actual length does not match, the packet will be dropped (for l/t <1500). r/w 0 table 4-2: global register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 49 ksz8895mqx/rqx/fqx/mlx 2 aging enable 1, enable age function in the chip. 0, disable aging function. r/w 1 pin led[5][2] strap option. pd(0): aging disable. pu(1): aging enable (default). note: led[5][2] has internal pull up. 1 fast age enable 1 = turn on fast age (800 s). r/w 0 0 aggressive back off enable 1 = enable more aggressive back-off algorithm in half duplex mode to enhance performance. this is not an ieee standard. r/w 0 pin pmrxd0 strap option. pd(0): disable aggressive back off (default). pu(1): aggressive back off. note: pmrxd0 has internal pull-down. register 4 (0x04): global control 2 7 unicast port- vlan mismatch discard this feature is used for port vlan (described in register 17, register 33...). 1, all packets cannot cross vlan boundary. 0, unicast packets (excluding unknown/multicast/ broadcast) can cross vlan boundary. r/w 1 6 multicast storm protection disable 1, ?broadcast storm protection? does not include multicast packets. only da=ffffffffffff pack- ets will be regulated. 0, ?broadcast storm protection? includes da = ffffffffffff and da [40] = 1 packets. r/w 1 5 back pressure mode 1, carrier sense based ba ck pressure is selected. 0, collision based back pressure is selected. r/w 1 4 flow control and back pressure fair mode 1, fair mode is selected. in this mode, if a flow con- trol port and a non-flow control port talk to the same destination port, packets fr om the non-flow control port may be dropped. this is to prevent the flow control port from being flow controlled for an extended period of time. 0, in this mode, if a flow control port and a non-flow control port talk to the sa me destination port, the flow control port will be flow controlled. this may not be ?fair? to the flow control port. r/w 1 3 no excessive collision drop 1, the switch will not drop packets when 16 or more collisions occur. 0, the switch will drop packets when 16 or more collisions occur. r/w 0 pin pmrxd1 strap option. pd(0): (default) drop excessive collision packets. pu(1): do not drop excessive collision packets. note: pmrxd1 has internal pull-down. table 4-2: global register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 50 ? 2016 microchip technology inc. 2 huge packet support 1, will accept packet sizes up to 1916 bytes (inclu- sive). this bit setting will override setting from bit 1 of the same register. 0, the max packet size will be determined by bit 1 of this register. r/w 0 1 legal maximum packet size check disable 1, will accept packet sizes up to 1536 bytes (inclu- sive). 0, 1522 bytes for tagged packets (not including packets with stpid from cpu to ports 1-4), 1518 bytes for untagged packets. any packets larger than the specified value will be dropped. r/w 0 pin pmrxer strap option. pd(0): (default) 1518/ 1522 byte packets. pu(1): 1536 byte packets. note: pmrxer has internal pull-down. 0 reserved n/a ro 0 register 5 (0x05): global control 3 7 802.1q vlan enable 1, 802.1q vlan mode is turned on. vlan table needs to set up before the operation. 0, 802.1q vlan is disabled. r/w 0 6 igmp snoop enable on switch sw5- mii/rmii interface 1, igmp snoop enabled. all the igmp packets will be forwarded to switch mii/rmii port. 0, igmp snoop disabled. r/w 0 5 enable direct mode on switch sw5- mii/rmii interface 1, direct mode on port 5. this is a special mode for the switch mii/rmii inte rface. using preamble before mrxdv to direct switch to forward packets, bypassing internal look-up. 0, normal operation. r/w 0 4 enable pre- tag on switch sw5- mii/rmii interface 1, packets forwarded to switch mii/rmii interface will be pre-tagged with the source port number (preamble before rxdv). 0, normal operation. r/w 0 3 - 2 reserved n/a ro 00 1 enable ?tag? mask 1, the last 5 digits in the vid field are used as a mask to determine which port(s) the packet should be forwarded to. 0, no tag masks. note: you need to turn off the 802.1q vlan mode (reg0x5, bit 7 = 0) for this bit to work. r/w 0 0 sniff mode select 1, will do rx and tx sniff (both source port and destination port need to match). 0, will do rx or tx sniff (either source port or des- tination port needs to match). this is the mode used to implement rx only sniff. r/w 0 register 6 (0x06): global control 4 7 switch sw5- mii/rmii back pressure enable 1, enable half-duplex back pressure on switch mii/ rmii interface. 0, disable back pressure on switch mii/rmii inter- face. r/w 0 table 4-2: global register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 51 ksz8895mqx/rqx/fqx/mlx 6 switch sw5- mii/rmii half-duplex mode 1, enable mii/rmii interface half-duplex mode. 0, disable mii/rmii interface full-duplex mode. r/w 0 pin smrxd2 strap option. pd(0): (default) full- duplex mode. pu(1): half-duplex mode. note: smrxd2 has internal pull-down. 5 switch sw5- mii/rmii flow control enable 1, enable full-duplex flow control on switch mii/ rmii interface. 0, disable full-duplex flow control on switch mii/ rmii interface. r/w 0 pin smrxd3 strap option. pd(0): (default) disable flow control. pu(1): enable flow control. note: smrxd3 has internal pull-down. 4 switch sw5- mii/rmii speed 1, the switch sw5-mii/rmii is in 10 mbps mode. 0, the switch sw5-mii/rmii is in 100 mbps mode r/w 0 pin smrxd1 strap option. pd(0): (default) enable 100 mbps. pu(1): enable 10 mbps. note: smrxd1 has internal pull-down. 3 null vid replacement 1, will replace null vid with port vid (12 bits). 0, no replacement for null vid. r/w 0 2 - 0 broadcast storm protection rate bit [10:8] this along with the next register determines how many ?64 byte blocks? of packet data allowed on an input port in a preset per iod. the period is 50 ms for 100bt or 500 ms for 10bt. the default is 1%. r/w 000 register 7 (0x07): global control 5 7 - 0 broadcast storm protection rate bit [7:0] this along with the prev ious register determines how many ?64 byte blocks? of packet data are allowed on an input port in a preset period. the period is 50 ms for 100bt or 500ms for 10bt. the default is 1%. r/w 0x4a ( note 4-1 ) register 8 (0x08): global control 6 7 - 0 factory testing n/a do not change. ro 0x00 register 9 (0x09): global control 7 7 - 0 factory testing n/a do not change ro 0x4c register 10 (0x0a): global control 8 7 - 0 factory testing n/a do not change ro 0x00 register 11 (0x0b): global control 9 7 reserved n/a do not change ro 0 table 4-2: global register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 52 ? 2016 microchip technology inc. 6 port 5 sw5- rmii reference clock edge select rqx: select the data sampling edge of switch mac5 sw5-rmii reference clock: 1 = data sampling on negative edge of refclk 0 = data sampling on positive edge of refclk (default) note: mqx/fqx/mlx is reserved with read-only for this bit. r/w 0 5 reserved n/a do not changes. ro 0 4 reserved n/a do not changes. ro 0 3 phy power save 1 = disable phy power save mode. 0 = enable phy power save mode. r/w 0 2 reserved n/a do not changes. ro 0 1led mode 0 = led mode 0. 1 = led mode 1. mode 0, link at 100/full ledx[2,1,0] = 0,0,0 100/half ledx[2,1,0] = 0,1,0 10/full ledx[2,1,0] = 0,0,1 10/half ledx[2,1,0] = 0,1,1 mode 1, link at 100/full ledx[2,1,0] = 0,1,0 100/half ledx[2,1,0] = 0,1,1 10/full ledx[2,1,0] = 1,0,0 10/half ledx[2,1,0] = 1,0,1 (0 = led on, 1 = led off) r/w 0 pin smrxd0 strap option. pull-down(0): enabled led mode 0. pull-up(1): enabled led mode 1. note: smrxd0 has internal pull-down 0. 0 spi/smi read sampling clock edge select select the spi/smi clock edge for sampling spi/ smi read data 1 = trigger by rising edge of spi/smi clock (for high speed spi about 25 mhz and smi about 10 mhz) 0 = trigger by falling edge of spi/smi clock r/w 0 register 12 (0x0c): global control 10 7 reserved reserved ro 0 6 status of device with rmii inter- face at clock mode or nor- mal mode, default is clock mode with 25mhz crystal clock from pins x1/ x2 (used for rmii of the ksz8895rqx only) 1 = the device is in clock mode when use rmii interface, 25 mhz crystal clock input as clock source for internal pll. this internal pll will pro- vide the 50 mhz output on the pin smrxc for rmii reference clock (default). 0 = the device is in normal mode when use sw4- rmii interface and 50 mhz clock input from exter- nal clock through pin sm4txc as device?s clock source and internal pll clock source from this pin not from the 25 mhz crystal. note: this bit is set by strap option only. write to this bit has no effect on mode selection. note: the normal mode is used in sw5-rmii inter- face reference clock from external. ro 1 pin led[2][2] strap option. pd(0): select sw5- rmii at normal mode to receive external 50 mhz rmii refer- ence clock pu(1): (default) select sw5-rmii at clock mode, rmii out- put 50 mhz note: led[2][2] has internal pull-up. table 4-2: global register descriptions (continued) address name description mode default mode 0 mode 1 ledx_2 link/activity 100link/activity ledx_1 full-duplex/col 10link/activity ledx_0 speed full-duplex
? 2016 microchip technology inc. ds00002246a-page 53 ksz8895mqx/rqx/fqx/mlx note 4-1 148,800 frames/sec 50 ms/int erval 1% = 74 frames/interval (approx.) = 0x4a. 5 - 4 cpu interface clock select select the internal cloc k speed for spi, mdi inter- face: 00 = 41.67 mhz (spi up to 6.25 mhz, mdc up to 6mhz) 01 = 83.33 mhz default (spi scl up to 12.5 mhz, mdc up to 12 mhz) 10 = 125 mhz (for high speed spi about 25 mhz) 11 = reserved r/w 01 3 reserved n/a do not change ro 0 2 enable restore preamble this bit is to enable phy5, when in 10bt mode, to restore preamble before sending data on p5-mii interface. 1 = enable phy5 to restore preamble. 0 = disable phy5 to restore preamble. r/w 1 1 tail tag enable tail tag feature is applied for port 5 only. 1 = insert 1 byte of data right before fcs 0 = do not insert r/w 0 0 pass flow control packet 1 = switch will not filter 802.1x ?flow control? packets 0 = switch will filter 802. 1x ?flow control? packets r/w 0 register 13 (0x0d): global control 11 7 - 0 factory testing n/a do not change ro 00000000 register 14 (0x0e): power down management control 1 7 reserved n/a do not change ro 0 6 reserved n/a do not change ro 0 5 pll power down pll power down enable: 1 = disable 0 = enable r/w 0 4 - 3 power manage- ment mode power management mode: 00 = normal mode (d0) 01 = energy detection mode (d2) 10 = soft power down mode (d3) 11 = power saving mode (d1) note: for soft power down mode to take effect, have to write ?10? only without read value back. r/w 00 pin led[4][0] strap option. pd(0): select energy detection mode pu(1): (default) nor- mal mode note: led[4][0] has internal pull-up. 2 - 0 reserved n/a do not change ro 000 register 15 (0x0f): power down management control 2 7 - 0 go_sleep_- time[7:0] when the energy detect mode is on, this value is used to control the minimum period that the no energy event has to be detected consecutively before the device enters the low power state. the unit is 20 ms. the default of go sleep time is 1.6 seconds (80 dec x 20 ms). r/w 01010000 table 4-2: global register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 54 ? 2016 microchip technology inc. 4.2 port registers the following registers are used to enable features that ar e assigned on a per port basis. the register bit assignments are the same for all ports, but the address for each port is different, as indicated. table 4-3: port registers address name description mode default register 16 (0x10): port 1 control 0 register 32 (0x20): port 2 control 0 register 48 (0x30): port 3 control 0 register 64 (0x40): port 4 control 0 register 80 (0x50): port 5 control 0 7 broadcast storm protection enable 1, enable broadcast storm protection for ingress packets on the port. 0, disable broadcast storm protection. r/w 0 6 diffserv pri- ority classifi- cation enable 1, enable diffserv priority classification for ingress packets on port. 0, disable diffserv function. r/w 0 5 802.1p prior- ity classifica- tion enable 1, enable 802.1p priority classification for ingress packets on port. 0, disable 802.1p. r/w 0 4 - 3 port-based priority clas- sification enable = 00, ingress packets on port will be classified as priority 0 queue if ?diffserv? or ?802.1p? classifica- tion is not enabled or fails to classify. = 01, ingress packets on port will be classified as priority 1 queue if ?diffserv? or ?802.1p? classifica- tion is not enabled or fails to classify. = 10, ingress packets on port will be classified as priority 2 queue if ?diffserv? or ?802.1p? classifica- tion is not enabled or fails to classify. = 11, ingress packets on port will be classified as priority 3 queue if ?diffserv? or ?802.1p? classifica- tion is not enabled or fails to classify. note: ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. r/w 00 2 tag insertion 1, when packets are output on the port, the switch will add 802.1q tags to packets without 802.1q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress port?s ?port vid.? 0, disable tag insertion. r/w 0 1 tag removal 1, when packets are output on the port, the switch will remove 802.1q tags from packets with 802.1q tags when received. the switch will not modify packets received without tags. 0, disable tag removal. r/w 0
? 2016 microchip technology inc. ds00002246a-page 55 ksz8895mqx/rqx/fqx/mlx 0 two queues split enable this bit 0 in the register16/32/48/64/80 should be in combination with register177/193/209/225/241 bit 1 for port 1-5 will select the split of 1/2/4 queues: for port 1, [register 177 bit 1, register 16 bit 0] = [11], reserved [10], the port output queue is split into four priority queues or if map 802.1p to priority 0-3 mode. [01], the port output queue is split into two priority queues or if map 802.1p to priority 0-3 mode. [00], single output queue on the port. there is no priority differentiation even though packets are classified into high or low priority. r/w 0 register 17 (0x11): port 1 control 1 register 33 (0x21): port 2 control 1 register 49 (0x31): port 3 control 1 register 65 (0x41): port 4 control 1 register 81 (0x51): port 5 control 1 7 sniffer port 1, port is designated as sniffer port and will transmit packets that are monitored. 0, port is a normal port. r/w 0 6 receive sniff 1, all the packets received on the port will be marked as ?monitored packets? and forwarded to the designated ?sniffer port.? 0, no receive monitoring. r/w 0 5 transmit sniff 1, all the packets transmitted on the port will be marked as ?monitored packets? and forwarded to the designated ?sniffer port.? 0, no transmit monitoring. r/w 0 4 - 0 port vlan membership define the port?s port vlan membership. bit 4 stands for port 5, bit 3 for port 4...bit 0 for port 1. the port can only communicate within the member- ship. a ?1? includes a port in the membership, a ?0? excludes a port from membership. r/w 0x1f register 18 (0x12): port 1 control 2 register 34 (0x22): port 2 control 2 register 50 (0x32): port 3 control 2 register 66 (0x42): port 4 control 2 register 82 (0x52): port 5 control 2 7 user priority ceiling 1, if packet?s ?user priority field? is greater than the ?user priority field? in the port default tag register, replace the packet?s ?user priority field? with the ?user priority field? in the port default tag register control 3. 0, no replacement of packet? s priority filed with port default tag priority filed of the register port control 3 bit [7:5]. r/w 0 6 ingress vlan filtering. 1, the switch will discard packets whose vid port membership in vlan table bit [11:7] does not include the ingress port. 0, no ingress vlan filtering. r/w 0 5 discard non- pvid packets 1, the switch will discard packets whose vid does not match ingress port default vid. 0, no packets will be discarded. r/w 0 table 4-3: port registers (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 56 ? 2016 microchip technology inc. 4 force flow control 1, will always enable rx and tx flow control on the port, regardless of an result. 0, the flow control is enabled based on an result (default) r/w 0 strap-in option led1_1/pcol: for port 3/port 4 led1_1 default pull-up (1): not force flow control; pcol default pull- down (0): not force flow control. led1_1 pull-down (0): force flow control; pcol pull-up (1): force flow control. note: led1_1 has internal pull-up; pcol have internal pull-down. 3 back pres- sure enable 1, enable port half-duplex back pressure. 0, disable port half-duplex back pressure. r/w pin pmrxd2 strap option. pull-down (0): dis- able back pressure. pull-up (1): enable back pressure. note: pmrxd2 has internal pull-down. 2 transmit enable 1, enable packet transmission on the port. 0, disable packet transmission on the port. r/w 1 1 receive enable 1, enable packet reception on the port. 0, disable packet reception on the port. r/w 1 0 learning dis- able 1, disable switch address learning capability. 0, enable switch address learning. r/w 0 register 19 (0x13): port 1 control 3 register 35 (0x23): port 2 control 3 register 51 (0x33): port 3 control 3 register 67 (0x43): port 4 control 3 register 83 (0x53): port 5 control 3 7 - 0 default tag [15:8] port?s default tag, containing: 7-5: user priority bits 4: cfi bit 3-0: vid[11:8] r/w 0 register 20 (0x14): port 1 control 4 register 36 (0x24): port 2 control 4 register 52 (0x34): port 3 control 4 register 68 (0x44): port 4 control 4 register 84 (0x54): port 5 control 4 7 - 0 default tag [7:0] default port 1?s tag, containing: 7-0: vid[7:0] r/w 1 register 87 (0x57): rmii management control register 7 - 4 reserved ? ro 0000 table 4-3: port registers (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 57 ksz8895mqx/rqx/fqx/mlx 3 port 5 sw5- rmii 50 mhz clock output disable (used for ksz8895rqx only) disable the output of port 5 sw5-rmii 50 mhz out- put clock on rxc pin when 50 mhz clock is not being used by the device and the 50 mhz clock from external oscillator or opposite device in rmii mode 1 = disable clock output when rxc pin is not used in rmii mode 0 = enable clock output in rmii mode note: mqx/fqx/mlx is re served with read only for this bit. r/w 0 2 p5-rmii 50 mhz clock output dis- able (used for ksz8895rqx only) disable the output of port 5 p5-rmii 50 mhz output clock on rxc pin when 50 mhz clock is not being used by the device and the 50 mhz clock from external oscillator or opposite device in rmii mode 1 = disable clock output when rxc pin is not used in rmii mode 0 = enable clock output in rmii mode note: mqx/fqx/mlx is re served with read only for this bit. r/w 0 1 - 0 reserved n/a do not change ro 00 register 25 (0x19): port 1 status 0 register 41 (0x29): port 2 status 0 register 57 (0x39): port 3 status 0 register 73 (0x49): port 4 status 0 register 89 (0x59): port 5 status 0 7 hp_mdix 1 = hp auto mdi/mdi-x mode 0 = microchip auto mdi/mdi-x mode r/w 1 6 reserved n/a do not change ro 0 5polrvs 1 = polarity is reversed 0 = polarity is not reversed ro 0 4 transmit flow control enable 1 = transmit flow control feature is active 0 = transmit flow control feature is inactive ro 0 3 receive flow control enable 1 = receive flow control feature is active 0 = receive flow control feature is inactive ro 0 2 operation speed 1 = link speed is 100 mbps 0 = link speed is 10 mbps ro 0 1 operation duplex 1 = link duplex is full 0 = link duplex is half ro 0 0 reserved n/a do not change ro 0 register 26 (0x1a): port 1 phy special control/status register 42 (0x2a): port 2 phy special control/status register 58 (0x3a): port 3 phy special control/status register 74 (0x4a): port 4 phy special control/status register 90 (0x5a): port 5 phy special control/status 7 vct 10m short 1 = less than 10 meter short detected ro 0 table 4-3: port registers (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 58 ? 2016 microchip technology inc. 6 - 5 vct_result 00 = normal condition 01 = open condition detected in cable 10 = short condition detected in cable 11 = cable diagnostic test has failed ro 00 4 vct_enable 1 = enable cable diagnostic test. after vct test has completed, this bit will be self-cleared. 0 = indicate cable diagnostic test (if enabled) has completed and the status information is valid for read. r/w (sc) 0 3 force_lnk 1 = force link pass 0 = normal operation r/w 0 2pwrsave 1 = enable power saving 0 = disable power saving r/w 0 1 remote loopback 1 = perform remote loopback, loopback on port 1 as follows: port 1 (reg. 26, bit 1 = ?1?) start: rxp1/rxm1 (port 1) loopback: pmd/pma of port 1?s phy end: txp1/txm1 (port 1) setting reg. 42, 58, 74, 90, bit 1 = ?1? will per- form remote loopback on port 2, 3, 4, 5. 0 = normal operation. r/w 0 0 vct_- fault_count[8] bits[8] of vct fault count distance to the fault. it?s approximately 0.4m x vct_fault_count[8:0] ro 0 register 27 (0x1b): port 1 linkmd result register 43 (0x2b): port 2 linkmd result register 59 (0x3b): port 3 linkmd result register 75 (0x4b): port 4 linkmd result register 91 (0x5b): port 5 linkmd result 7 - 0 vct_- fault_count [7:0] bits [7:0] of vct fault count distance to the fault. it?s approximately 0.4m x vct_fault_count[8:0] ro 0 register 28 (0x1c): port 1 control 5 register 44 (0x2c): port 2 control 5 register 60 (0x3c): port 3 control 5 register 76 (0x4c): port 4 control 5 register 92 (0x5c): port 5 control 5 7 disable auto- negotiation 1, disable auto-negotiation, speed and duplex are decided by bit 6 and 5 of the same register. 0, auto-negotiation is on. note: the register bit value is the invert of the strap value at the pin. r/w 0 for port 3/port 4 only. invert of pins led[2][1]/led[5][0] strap option. pd(0): disable auto- negotiation. pu(1): en able auto- negotiation. note: led[2][1]/ led[5][0] have inter- nal pull up. 6 forced speed 1, forced 100bt if an is disabled (bit 7). 0, forced 10bt if an is disabled (bit 7). r/w 1 table 4-3: port registers (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 59 ksz8895mqx/rqx/fqx/mlx 5 forced duplex 1, forced full-duplex if (1) an is disabled or (2) an is enabled but failed. 0, forced half-duplex if (1) an is disabled or (2) an is enabled but failed (default). r/w 0 for port 3/port 4 only. pins led1_0/pcrs strap option: 1). force half-duplex mode: led1_0 pin pull- up(1) (default) for port 3 pcrs pin pull-down (0) (default) for port 4 2). force full-duplex mode: led1_0 pin pull- down(0) for port 3 pcrs pull-up (1) for port 4. note: led1_0 has internal pull-up; pcrs have internal pull-down. 4 advertised flow control capability 1, advertise flow control capability. 0, suppress flow control capability from transmis- sion to link partner. r/w 1 3 advertised 100bt full- duplex capability 1, advertise 100bt full-duplex capability. 0, suppress 100bt full-duplex capability from transmission to link partner. r/w 1 2 advertised 100bt half- duplex capability 1, advertise 100bt half-duplex capability. 0, suppress 100bt half-duplex capability from transmission to link partner. r/w 1 1 advertised 10bt full- duplex capability 1, advertise 10bt full-duplex capability. 0, suppress 10bt full-duplex capability from trans- mission to link partner. r/w 1 0 advertised 10bt half- duplex capability 1, advertise 10bt half-duplex capability. 0, suppress 10bt half-duplex capability from trans- mission to link partner. r/w 1 register 29 (0x1d): port 1 control 6 register 45 (0x2d): port 2 control 6 register 61 (0x3d): port 3 control 6 register 77 (0x4d): port 4 control 6 register 93 (0x5d): port 5 control 6 7 led off 1, turn off all port?s leds (ledx_2, ledx_1, ledx_0, where ?x? is the port number). these pins will be driven high if this bit is set to one. 0, normal operation. r/w 0 6 txids 1, disable port?s transmitter. 0, normal operation. r/w 0 5restart an 1, restart auto-negotiation. 0, normal operation. r/w (sc) 0 4 fx reserved n/a ro 0 table 4-3: port registers (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 60 ? 2016 microchip technology inc. 3 power down 1, power down. 0, normal operation. r/w 0 2 disable auto mdi/mdi-x 1, disable auto mdi/mdi-x function. 0, enable auto mdi/mdi-x function. r/w 0 1 forced mdi 1, if auto mdi/mdi-x is disabled, force phy into mdi mode (transmit on rx pair). 0, mdi-x mode (transmit on tx pair). r/w 0 0 mac loopback 1 = perform mac loopback, loop back path as fol- lows: e.g. set port 1 mac loopback (reg. 29, bit 0 = ?1?), use port 2 as monitor port. the packets will transfer start: port 2 receiving (also can start to receive packets from port 3, 4, 5). loopback: port 1?s mac. end: port 2 transmitting (also can end at port 3, 4, 5 respectively). setting reg. 45, 61, 77, 93, bit 0 = ?1? will perform mac loopback on port 2, 3, 4, 5 respectively. 0 = normal operation. r/w 0 register 30 (0x1e): port 1 status 1 register 46 (0x2e): port 2 status 1 register 62 (0x3e): port 3 status 1 register 78 (0x4e): port 4 status 1 register 94 (0x5e): port 5 status 1 7 mdix status 1, mdi. 0, mdi-x. ro 0 6 an done 1, an done. 0, an not done. ro 0 5 link good 1, link good. 0, link not good. ro 0 4 partner flow control capability 1, link partner flow control capable. 0, link partner not flow control capable. ro 0 3 partner 100bt full- duplex capability 1, link partner 100bt full-duplex capable. 0, link partner not 100bt full-duplex capable. ro 0 2 partner 100bt half- duplex capability 1, link partner 100bt half-duplex capable. 0, link partner not 100bt half-duplex capable. ro 0 1 partner 10bt full-duplex capability 1, link partner 10bt full-duplex capable. 0, link partner not 10bt full-duplex capable. ro 0 0 partner 10bt half-duplex capability 1, link partner 10bt half-duplex capable. 0, link partner not 10bt half-duplex capable. ro 0 table 4-3: port registers (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 61 ksz8895mqx/rqx/fqx/mlx note 4-1 bits 2-0 are used for spanning tree support. see ?spanning tree support? section for more information. note 4-2 registers 19 and 20 (and those corresponding to other ports) serve two purposes: (1) associated with the ingress untagged packets, and used for egress tagging; (2) default vid for the ingress untagged or null-vid-tagged packets, and used for address look up. note 4-3 port control 12, 13, 14 and port status 1, 2 contents can be accessed by miim (mdc/mdio) interface via the standard miim register definition. 4.3 advanced control registers registers 104 to 109 define the switching engine?s mac addr ess. this 48-bit address is used as the source address in mac pause control frames, or is used for self mac address fi ltering, also see register 134. use registers 110 and 111 to read or write data to the static ma c address table, vlan table, dynamic address table, or the mib counters. write to register 111 will actually trigger a co mmand. read or write access will be decided by bit 4 of register 110. registers 128 and 129 can be used to map from 802.1p priority field 0-7 to switch?s four priority queues 0-3, 0x3 is highest priority queues as priority 3, 0x0 is lowest priority queues as priority 0. register 31 (0x1f): port 1 control 7 and status 2 register 47 (0x2f): port 2 control 7 and status 2 register 63 (0x3f): port 3 control 7 and status 2 register 79 (0x4f): port 4 control 7 and status 2 register 95 (0x5f): port 5 control 7 and status 2 7 phy loopback 1 = perform phy loopback, loop back path as fol- lows: e.g. set port 1 phy loopback (reg. 31, bit 7 = ?1?) use the port 2 as monitor port. the packets will transfer. start: port 2 receiving (also can start from port 3, 4, 5). loopback: pmd/pma of port 1?s phy end: port 2 transmitting (also can end at port 3, 4, 5 respectively). setting reg. 47, 63, 79, 95, bit 7 = ?1? will per- form phy loopback on port 2, 3, 4, 5 respectively. 0 = normal operation. r/w 0 6 reserved n/a do not change ro 0 5 phy isolate 1, electrical isolation of phy from mii/rmii and tx+/tx-. 0, normal operation. r/w 0 4 soft reset 1, phy soft reset. this bit is self-clearing. 0, normal operation. r/w (sc) 0 3 force link 1, force link in the phy. 0, normal operation r/w 0 2 - 0 port opera- tion mode indication indicate the current state of port operation mode: [000] = reserved [001] = still in auto-negotiation [010] = 10base-t half-duplex [011] = 100base-tx half-duplex [100] = reserved [101] = 10base-t full-duplex [110] = 100base- tx full-duplex [111] = reserved ro 001 table 4-3: port registers (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 62 ? 2016 microchip technology inc. table 4-4: advanced control register descriptions address name description mode default register 104 (0x68): mac address register 0 7 - 0 maca[47:40] ? r/w 0x00 register 105 (0x69): mac address register 1 7 - 0 maca[39:32] ? r/w 0x10 register 106 (0x6a): mac address register 2 7 - 0 maca[31:24] ? r/w 0xa1 register 107 (0x6b): mac address register 3 7 - 0 maca[23:16] ? r/w 0xff register 108 (0x6c): mac address register 4 7 - 0 maca[15:8] ? r/w 0xff register 109 (0x6d): mac address register 5 7 - 0 maca[7:0] ? r/w 0xff register 110 (0x6e): indirect access control 0 7 - 5 reserved reserved r/w 000 4 read high write low 1, read cycle. 0, write cycle. r/w 0 3 - 2 table select 00 = static mac address table selected. 01 = vlan table selected. 10 = dynamic address table selected. 11 = mib counter selected. r/w 0 1 - 0 indirect address high bit 9-8 of indirect address. r/w 00 register 111 (0x6f): indirect access control 1 7 - 0 indirect address low bit 7-0 of indirect address. r/w 00000000 register 112 (0x70): indirect data register 8 7 - 0 indirect data bit 68-64 of indirect data. r/w 00000 register 113 (0x71): indirect data register 7 7 - 0 indirect data bit 63-56 of indirect data. r/w 00000000 register 114 (0x72): indirect data register 6 7 - 0 indirect data bit 55-48 of indirect data. r/w 00000000 register 115 (0x73): indirect data register 5 7 - 0 indirect data bit 47-40 of indirect data. r/w 00000000 register 116 (0x74): indirect data register 4 7 - 0 indirect data bit 39-32 of indirect data. r/w 00000000 register 117 (0x75): indirect data register 3 7 - 0 indirect data bit of 31-24 of indirect data r/w 00000000 register 118 (0x76): indirect data register 2 7 - 0 indirect data bit 23-16 of indirect data. r/w 00000000 register 119 (0x77): indirect data register 1 7 - 0 indirect data bit 15-8 of indirect data. r/w 00000000 register 120 (0x78): indirect data register 0 7 - 0 indirect data bit 7-0 of indirect data. r/w 00000000 register 124 (0x7c): interrupt status register 7 - 5 reserved reserved ro 000
? 2016 microchip technology inc. ds00002246a-page 63 ksz8895mqx/rqx/fqx/mlx 4 port 5 interrupt status 1, port 5 interrupt request 0, normal note: this bit is set by port 5 link change. write a ?1? to clear this bit ro 0 3 port 4 interrupt status 1, port 4 interrupt request 0, normal note: this bit is set by port 4 link change. write a ?1? to clear this bit ro 0 2 port 3 interrupt status 1, port 3 interrupt request 0, normal note: this bit is set by port 3 link change. write a ?1? to clear this bit ro 0 1 port 2 interrupt status 1, port 2 interrupt request 0, normal note: this bit is set by port 2 link change. write a ?1? to clear this bit ro 0 0 port 1 interrupt status 1, port 1 interrupt request 0, normal note: this bit is set by port 1 link change. write a ?1? to clear this bit ro 0 register 125 (0x7d): interrupt mask register 7 - 5 reserved reserved ro 000 4 port 5 interrupt mask 1, port 5 interrupt mask 0, normal r/w 0 3 port 4 interrupt mask 1, port 4 interrupt mask 0, normal r/w 0 2 port 3 interrupt mask 1, port 3 interrupt mask 0, normal r/w 0 1 port 2 interrupt mask 1, port 2 interrupt mask 0, normal r/w 0 0 port 1 interrupt mask 1, port 1 interrupt mask 0, normal r/w 0 register 128 (0x80): global control 12 7 - 6 tag_0x3 ieee 802.1p mapping. the va lue in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x3. r/w 0x1 5 - 4 tag_0x2 ieee 802.1p mapping. the va lue in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x2. r/w 0x1 3 - 2 tag_0x1 ieee 802.1p mapping. the va lue in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x1. r/w 0x0 1 - 0 tag_0x0 ieee 802.1p mapping. the va lue in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x0. r/w 0x0 register 129 (0x81): global control 13 7 - 6 tag_0x7 ieee 802.1p mapping. the va lue in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x7. r/w 0x3 table 4-4: advanced control register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 64 ? 2016 microchip technology inc. 5 - 4 tag_0x6 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x6. r/w 0x3 3 - 2 tag_0x5 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x5. r/w 0x2 1 - 0 tag_0x4 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its ieee 802.1p tag has a value of 0x4. r/w 0x2 register 130 (0x82): global control 14 7 - 6 pri_2q[1:0] (note that program prio_2q[1:0] = 01 is not supported and should be avoided) when the 2 queue configuration is selected, these pri_2q[1:0] bits are used to map the 2-bit result of ieee 802.1p from register 128/129 or tos/diffserv from register 144-159 mapping (for 4 queues) into two queues low/high priori- ties. 2-bit result of ieee 802.1p or tos/diffserv 00 (0) = map to low priority queue 01 (1) = prio_2q[0] map to low/high priority queue 10 (2) = prio_2q[1] map to low/high priority queue 11 (3) = map to high priority queue pri_2q[1:0] = 00: result 0, 1, 2 are low priority. 3 is high prior- ity. 10: result 0, 1 are low priority. 2, 3 are high pri- ority (default). 11: result 0 is low priority. 1, 2, 3 are high prior- ity. r/w 10 5 reserved n/a do not change. ro 0 4 reserved n/a do not change. ro 0 3 - 2 reserved n/a do not change. ro 01 1 reserved n/a do not change. ro 0 0 reserved n/a do not change. ro 0 register 131 (0x83): global control 15 7 reserved n/a do not change. ro 1 6 reserved n/a do not change. ro 0 5 unknown unicast packet forward 1 = enable supporting unknown unicast packet forward 0 = disable r/w 0 4 - 0 unknown unicast packet forward port map 00000 = filter unknown unicast packet 00001 = forward unknown unicast packet to port 1, 00010 = forward unknown unicast packet to port 2, 00011 = forward unknown unicast packet to port 1, port 2 ? 11111 = broadcast unknown unicast packet to all ports r/w 00000 table 4-4: advanced control register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 65 ksz8895mqx/rqx/fqx/mlx register 132 (0x84): global control 16 7 - 6 chip i/o output drive strength select[1:0] output drive strength select[1:0] = 00 = 4 ma drive strength 01 = 8 ma drive strength (default) 10 = 10 ma drive strength 11 = 14 ma drive strength note: bit [1] value is the invert of the strap value at the pin. bit[0] value is the same of the strap value at the pin. r/w 01 pin led [3][0] strap option. pull-down (0): select 10 ma drive strength. pull-up (1): select 8 ma drive strength. note: led [3][0] has internal pull-up. 5 unknown multi- cast packet for- ward (not including ip mul- ticast packet) 1 = enable supporting unknown multicast packet forward 0 = disable r/w 0 4 - 0 unknown multi- cast packet for- ward port map 00000 = filter unknown multicast packet 00001 = forward unknown multicast packet to port 1, 00010 = forward unknown multicast packet to port 2, 00011 = forward unknown multicast packet to port 1, port 2 ? 11111 = broadcast unknown multicast packet to all ports r/w 00000 register 133 (0x85): global control 17 7 - 6 reserved ? ro 00 5 unknown vid packet forward 1 = enable supporting unknown vid packet for- ward 0 = disable r/w 0 4 - 0 unknown vid packet forward port map 00000 = filter unknown vid packet 00001 = forward unknown vid packet to port 1, 00010 = forward unknown vid packet to port 2, 00011 = forward unknown vid packet to port 1, port 2 ? 11111 = broadcast unknown vid packet to all ports r/w 00000 register 134 (0x86): global control 18 7 reserved n/a ro 0 6 self-address filter enable 1 = enable filtering of self-address unicast and multicast packet 0 = do not filter self-address packet note: the self-address filtering will filter packets on the egress port, self mac address is assigned in the register 104-109. r/w 0 5 unknown ip multicast packet forward 1 = enable supporting unknown ip multicast packet forward 0 = disable r/w 0 table 4-4: advanced control register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 66 ? 2016 microchip technology inc. 4 - 0 unknown ip multicast packet forward port map 00000 = filter unknown ip multicast packet 00001 = forward unknown ip multicast packet to port 1, 00010 = forward unknown ip multicast packet to port 2, 00011 = forward unknown ip multicast packet to port 1, port 2 ? 11111 = broadcast unknown ip multicast packet to all ports r/w 00000 register 135 (0x87): global control 19 7 reserved n/a do not change. ro 0 6 reserved n/a do not change. ro 0 5 - 4 ingress rate limit period the unit period for calculating ingress rate limit 00 = 16 ms 01 = 64 ms 1x = 256 ms r/w 01 3 queue-based egress rate limit enabled enable queue-based egress rate limit 0 = port-based egress rate limit (default) 1 = queue-based egress rate limit r/w 0 2 insertion source port pvid tag selection enable 1 = enable source port pvid tag insertion or non-insertion option on the egress port for each source port pvid based on the ports registers control 8. 0 = disable, all packets from any ingress port will be inserted pvid based on register port con- trol 0 bit 2. r/w 0 1 - 0 reserved n/a do not change. ro 00 register 137 (0x89): identification register 7 - 4 revision id these bits are for the device identification 0000-0011: reserved 0100 (0x4): for mqx/rq x/fqx rev.a2 and ml rev.b2 0101 (0x5): for mqx/rq x/fqx rev.a3 and ml (spnz801061 and spnz801156) rev.b3 0110 (0x6): for mq x/rqx/fqx/mlx rev.a4 0111-1111: reserved ro dependent on revision number 3 - 0 reserved n/a do not change. ro 00 register 144 (0x90): tos priority control register 0 the ipv4/ipv6 tos priority control registers implement a fully decoded 64 bit differentiated services code point (dscp) register used to determine priority from the 6 bit tos field in the ip header. the most significant 6 bits of the tos field are fully decoded into 64 possibilities, and the singular code that results is mapped to the value in the cor- responding bit in the dscp register. 7 - 6 dscp[7:6] ipv4 and ipv6 mapping the value in this field is used as the frame?s pri- ority when bits [7:2] of the frame?s ip tos/diff- serv/traffic class value are 0x03. r/w 00 5 - 4 dscp[5:4] ipv4 and ipv6 mapping the value in this field is used as the frame?s pri- ority when bits [7:2] of the frame?s ip tos/diff- serv/traffic class value is 0x02 r/w 00 table 4-4: advanced control register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 67 ksz8895mqx/rqx/fqx/mlx 3 - 2 dscp[3:2] ipv4 and ipv6 mapping the value in this field is used as the frame?s pri- ority when bits [7:2] of the frame?s ip tos/diff- serv/traffic class value is 0x01 r/w 00 1 - 0 dscp[1:0] ipv4 and ipv6 mapping the value in this field is used as the frame?s pri- ority when bits [7:2] of the frame?s ip tos/diff- serv/traffic class value is 0x00 r/w 00 register 145 (0x91): tos priority control register 1 7 - 6 dscp[15:14] ipv4 and ipv6 mapping _ for value 0x07 r/w 00 5 - 4 dscp[13:12] ipv4 and ipv6 mapping _ for value 0x06 r/w 00 3 - 2 dscp[11:10] ipv4 and ipv6 mapping _ for value 0x05 r/w 00 1 - 0 dscp[9:8] ipv4 and ipv6 mapping _ for value 0x04 r/w 00 register 146 (0x92): tos priority control register 2 7 - 6 dscp[23:22] ipv4 and ipv6 mapping _ for value 0x0b r/w 00 5 - 4 dscp[21:20] ipv4 and ipv6 mapping _ for value 0x0a r/w 00 3 - 2 dscp[19:18] ipv4 and ipv6 mapping _ for value 0x09 r/w 00 1 - 0 dscp[17:16] ipv4 and ipv6 mapping _ for value 0x08 r/w 00 register 147 (0x93): tos priority control register 3 7 - 6 dscp[31:30] ipv4 and ipv6 mapping _ for value 0x0f r/w 00 5 - 4 dscp[29:28] ipv4 and ipv6 mapping _ for value 0x0e r/w 00 3 - 2 dscp[27:26] ipv4 and ipv6 mapping _ for value 0x0d r/w 00 1 - 0 dscp[25:24] ipv4 and ipv6 mapping _ for value 0x0c r/w 00 register 148 (0x94): tos priority control register 4 7 - 6 dscp[39:38] ipv4 and ipv6 mapping _ for value 0x13 r/w 00 5 - 4 dscp[37:36] ipv4 and ipv6 mapping _ for value 0x12 r/w 00 3 - 2 dscp[35:34] ipv4 and ipv6 mapping _ for value 0x11 r/w 00 1 - 0 dscp[33:32] ipv4 and ipv6 mapping _ for value 0x10 r/w 00 register 149 (0x95): tos priority control register 5 7 - 6 dscp[47:46] ipv4 and ipv6 mapping _ for value 0x17 r/w 00 5 - 4 dscp[45:44] ipv4 and ipv6 mapping _ for value 0x16 r/w 00 3 - 2 dscp[43:42] ipv4 and ipv6 mapping _ for value 0x15 r/w 00 1 - 0 dscp[41:40] ipv4 and ipv6 mapping _ for value 0x14 r/w 00 register 150 (0x96): tos priority control register 6 7 - 6 dscp[55:54] ipv4 and ipv6 mapping _ for value 0x1b r/w 00 5 - 4 dscp[53:52] ipv4 and ipv6 mapping _ for value 0x1a r/w 00 3 - 2 dscp[51:50] ipv4 and ipv6 mapping _ for value 0x19 r/w 00 1 - 0 dscp[49:48] ipv4 and ipv6 mapping _ for value 0x18 r/w 00 register 151 (0x97): tos priority control register 7 7 - 6 dscp[63:62] ipv4 and ipv6 mapping _ for value 0x1f r/w 00 5 - 4 dscp[61:60] ipv4 and ipv6 mapping _ for value 0x1e r/w 00 3 - 2 dscp[59:58] ipv4 and ipv6 mapping _ for value 0x1d r/w 00 1 - 0 dscp[57:56] ipv4 and ipv6 mapping _ for value 0x1c r/w 00 register 152 (0x98): tos priority control register 8 7 - 6 dscp[71:70] ipv4 and ipv6 mapping _ for value 0x23 r/w 00 5 - 4 dscp[69:68] ipv4 and ipv6 mapping _ for value 0x22 r/w 00 table 4-4: advanced control register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 68 ? 2016 microchip technology inc. 3 - 2 dscp[67:66] ipv4 and ipv6 mapping _ for value 0x21 r/w 00 1 - 0 dscp[65:64] ipv4 and ipv6 mapping _ for value 0x20 r/w 00 register 153 (0x99): tos priority control register 9 7 - 6 dscp[79:78] ipv4 and ipv6 mapping _ for value 0x27 r/w 00 5 - 4 dscp[77:76] ipv4 and ipv6 mapping _ for value 0x26 r/w 00 3 - 2 dscp[75:74] ipv4 and ipv6 mapping _ for value 0x25 r/w 00 1 - 0 dscp[73:72] ipv4 and ipv6 mapping _ for value 0x24 r/w 00 register 154 (0x9a): tos priority control register 10 7 - 6 dscp[87:86] ipv4 and ipv6 mapping _ for value 0x2b r/w 00 5 - 4 dscp[85:84] ipv4 and ipv6 mapping _ for value 0x2a r/w 00 3 - 2 dscp[83:82] ipv4 and ipv6 mapping _ for value 0x29 r/w 00 1 - 0 dscp[81:80] ipv4 and ipv6 mapping _ for value 0x28 r/w 00 register 155 (0x9b): tos pr iority control register 11 7 - 6 dscp[95:94] ipv4 and ipv6 mapping _ for value 0x2f r/w 00 5 - 4 dscp[93:92] ipv4 and ipv6 mapping _ for value 0x2e r/w 00 3 - 2 dscp[91:90] ipv4 and ipv6 mapping _ for value 0x2d r/w 00 1 - 0 dscp[89:88] ipv4 and ipv6 mapping _ for value 0x2c r/w 00 register 156 (0x9c): tos priority control register 12 7 - 6 dscp[103:102] ipv4 and ipv6 mapping _ for value 0x33 r/w 00 5 - 4 dscp[101:100] ipv4 and ipv6 mapping _ for value 0x32 r/w 00 3 - 2 dscp[99:98] ipv4 and ipv6 mapping _ for value 0x31 r/w 00 1 - 0 dscp[97:96] ipv4 and ipv6 mapping _ for value 0x30 r/w 00 register 157 (0x9d): tos priority control register 13 7 - 6 dscp[111:110] ipv4 and ipv6 mapping _ for value 0x37 r/w 00 5 - 4 dscp[109:108] ipv4 and ipv6 mapping _ for value 0x36 r/w 00 3 - 2 dscp[107:106] ipv4 and ipv6 mapping _ for value 0x35 r/w 00 1 - 0 dscp[105:104] ipv4 and ipv6 mapping _ for value 0x34 r/w 00 register 158 (0x9e): tos priority control register 14 7 - 6 dscp[119:118] ipv4 and ipv6 mapping _ for value 0x3b r/w 00 5 - 4 dscp[117:116] ipv4 and ipv6 mapping _ for value 0x3a r/w 00 3 - 2 dscp[115:114] ipv4 and ipv6 mapping _ for value 0x39 r/w 00 1 - 0 dscp[113:112] ipv4 and ipv6 mapping _ for value 0x38 r/w 00 register 159 (0x9f): tos priority control register 15 7 - 6 dscp[127:126] ipv4 and ipv6 mapping _ for value 0x3f r/w 00 5 - 4 dscp[125:124] ipv4 and ipv6 mapping _ for value 0x3e r/w 00 3 - 2 dscp[123:122] ipv4 and ipv6 mapping _ for value 0x3d r/w 00 1 - 0 dscp[121:120] ipv4 and ipv6 mapping _ for value 0x3c r/w 00 register 165 (0xa5): reserved 7 - 0 reserved n/a do not change ro 0x30 register 176 (0xb0): port 1 control 8 register 192 (0xc0): port 2 control 8 register 208 (0xd0): port 3 control 8 register 224 (0xe0): port 4 control 8 register 240 (0xf0): port 5 control 8 7 - 4 reserved ? ro 0000 table 4-4: advanced control register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 69 ksz8895mqx/rqx/fqx/mlx 3 insert source port pvid for untagged packet destina- tion to highest egress port register 176: insert source port 1 pvid for untagged frame at egress port 5 register 192: insert source port 2 pvid for untagged frame at egress port 5 register 208: insert source port 3 pvid for untagged frame at egress port 5 register 224: insert source port 4 pvid for untagged frame at egress port 5 register 240: insert source port 5 pvid for untagged frame at egress port 4 note: enabled by the register 135 bit 2 r/w 0 2 insert source port pvid for untagged packet destina- tion to second highest egress port register 176: insert source port 1 pvid for untagged frame at egress port 4 register 192: insert source port 2 pvid for untagged frame at egress port 4 register 208: insert source port 3 pvid for untagged frame at egress port 4 register 224: insert source port 4 pvid for untagged frame at egress port 3 register 240: insert source port 5 pvid for untagged frame at egress port 3 note: enabled by the register 135 bit 2 r/w 0 1 insert source port pvid for untagged packet destina- tion to second lowest egress port register 176: insert source port 1 pvid for untagged frame at egress port 3 register 192: insert source port 2 pvid for untagged frame at egress port 3 register 208: insert source port 3 pvid for untagged frame at egress port 2 register 224: insert source port 4 pvid for untagged frame at egress port 2 register 240: insert source port 5 pvid for untagged frame at egress port 2 note: enabled by the register 135 bit 2 r/w 0 0 insert source port pvid for untagged packet destina- tion to lowest egress port register 176: insert source port 1 pvid for untagged frame at egress port 2 register 192: insert source port 2 pvid for untagged frame at egress port 1 register 208: insert source port 3 pvid for untagged frame at egress port 1 register 224: insert source port 4 pvid for untagged frame at egress port 1 register 240: insert source port 5 pvid for untagged frame at egress port 1 note: enabled by the register 135 bit 2 r/w 0 register 177 (0xb1): port 1 control 9 register 193 (0xc1): port 2 control 9 register 209 (0xd1): port 3 control 9 register 225 (0xe1): port 4 control 9 register 241 (0xf1): port 5 control 9 7 - 2 reserved ? ro 000000 table 4-4: advanced control register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 70 ? 2016 microchip technology inc. 1 4 queue split enable this bit in combination with register 16/32/48/ 64/80 bit 0 will select the split of 1/2/4 queues: {register177 bit 1, register16 bit 0}= 11, reserved. 10, the port output queue is split into four priority queues or if map 802.1p to priority 0-3 mode. 01, the port output queue is split into two priority queues or if map 802.1p to priority 0-3 mode. 00, single output queue on the port. there is no priority differentiation even though packets are classified into high and low priority r/w 0 0 enable drop- ping tag 0 = disable the drop received tagged packets 1 = enable the drop received tagged packets r/w 0 register 178 (0xb2): port 1 control 10 register 194 (0xc2): port 2 control 10 register 210 (0xd2): port 3 control 10 register 226 (0xe2): port 4 control 10 register 242 (0xf2): port 5 control 10 7 enable port transmit queue 3 ratio 0, strict priority, will transmit all the packets from this priority queue 3 before transmit lower prior- ity queue. 1, bit [6:0] reflect the packet number allow to transmit from this priority queue 3 within a cer- tain time r/w 1 6 - 0 port transmit queue 3 ratio[6:0] packet number for transmit queue 3 for highest priority packets in four queues mode r/w 0001000 register 179 (0xb3): port 1 control 11 register 195 (0xc3): port 2 control 11 register 211 (0xd3): port 3 control 11 register 227 (0xe3): port 4 control 11 register 243 (0xf3): port 5 control 11 7 enable port transmit queue 2 ratio 0, strict priority, will transmit all the packets from this priority queue 2 before transmit lower prior- ity queue. 1, bit [6:0] reflect the packet number allow to transmit from this priority queue 1 within a cer- tain time r/w 1 6 - 0 port transmit queue 2 ratio[6:0] packet number for transmit queue 2 for high/ low priority packets in high/low priority packets in four queues mode r/w 0000100 register 180 (0xb4): port 1 control 12 register 196 (0xc4): port 2 control 12 register 212 (0xd4): port 3 control 12 register 228 (0xe4): port 4 control 12 register 244 (0xf4): port 5 control 12 7 enable port transmit queue 1 rate 0, strict priority, will transmit all the packets from this priority queue 1 before transmit lower prior- ity queue. 1, bit [6:0] reflect the packet number allow to transmit from this priority queue 1 within a cer- tain time r/w 1 table 4-4: advanced control register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 71 ksz8895mqx/rqx/fqx/mlx 6 - 0 port transmit queue 1 ratio[6:0] packet number for transmit queue 1 for low/ high priority packets in four queues mode and high priority packets in two queues mode r/w 0000010 register 181 (0xb5): port 1 control 13 register 197 (0xc5): port 2 control 13 register 213 (0xd5): port 3 control 13 register 229 (0xe5): port 4 control 13 register 245 (0xf5): port 5 control 13 7 enable port transmit queue 0 rate 0, strict priority, will transmit all the packets from this priority queue 0 before transmit lower prior- ity queue. 1, bit [6:0] reflect the packet number allow to transmit from this priority queue 0 within a cer- tain time r/w 1 6 - 0 port transmit queue 0 ratio[6:0] packet number for transmit queue 0 for lowest priority packets in four queues mode and low priority packets in two queues mode r/w 0000001 register 182 (0xb6): port 1 rate limit control register 198 (0xc6): port 2 rate limit control register 214 (0xd6): port 3 rate limit control register 230 (0xe6): port 4 rate limit control register 246 (0xf6): port 5 rate limit control 7 - 5 reserved ? ro 000 4 ingress rate limit flow con- trol enable 1 = flow control is asserted if the port?s receive rate is exceeded 0 = flow control is not asserted if the port?s receive rate is exceeded r/w 0 3 - 2 limit mode ingress limit mode these bits determine what kinds of frames are limited and counted against ingress rate limiting. = 00, limit and count all frames = 01, limit and count broadcast, multicast, and flooded unicast frames = 10, limit and count br oadcast and multicast frames only = 11, limit and count broadcast frames only r/w 00 1 count ifg count ifg bytes = 1, each frame?s minimum inter frame gap (ifg) bytes (12 per frame) are included in ingress and egress rate limiting calculations. = 0, ifg bytes are not counted. r/w 0 0 count pre count preamble bytes = 1, each frame?s preamble bytes (8 per frame) are included in ingress and egress rate limiting calculations. = 0, preamble bytes are not counted. r/w 0 register 183 (0xb7): port 1 priority 0 ingress limit control 1 register 199 (0xc7): port 2 priority 0 ingress limit control 1 register 215 (0xd7): port 3 priority 0 ingress limit control 1 register 231 (0xe7): port 4 priority 0 ingress limit control 1 register 247 (0xf7): port 5 priority 0 ingress limit control 1 7 reserved ? ro 0 table 4-4: advanced control register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 72 ? 2016 microchip technology inc. 6 - 0 port-based pri- ority 0 ingress limit ingress data rate limit for priority 0 frames ingress traffic from this port is shaped according to the data rate selected table. see the table follow the end of egress limit control registers r/w 0000000 register 184 (0xb8): port 1 priority 1 ingress limit control 2 register 200 (0xc8): port 2 priority 1 ingress limit control 2 register 216 (0xd8): port 3 priority 1 ingress limit control 2 register 232 (0xe8): port 4 priority 1 ingress limit control 2 register 248 (0xf8): port 5 priority 1 ingress limit control 2 7 reserved ? ro 0 6 - 0 port-based pri- ority 1 ingress limit ingress data rate limit for priority 1 frames ingress traffic from this port is shaped according to the data rate selected table. see the table follow the end of egress limit control registers r/w 0000000 register 185 (0xb9): port 1 priority 2 ingress limit control 3 register 201 (0xc9): port 2 priority 2 ingress limit control 3 register 217 (0xd9): port 3 priority 2 ingress limit control 3 register 233 (0xe9): port 4 priority 2 ingress limit control 3 register 249 (0xf9): port 5 priority 2 ingress limit control 3 7 reserved ? ro 0 6 - 0 port based pri- ority 2 ingress limit ingress data rate limit for priority 2 frames ingress traffic from this port is shaped according to the data rate selected table. see the table follow the end of egress limit control registers r/w 0000000 register 186 (0xba): port 1 priority 3 ingress limit control 4 register 202 (0xca): port 2 priority 3 ingress limit control 4 register 218 (0xda): port 3 priority 3 ingress limit control 4 register 234 (0xea): port 4 priority 3 ingress limit control 4 register 250 (0xfa): port 5 priority 3 ingress limit control 4 7 reserved ? ro 0 6 - 0 port based pri- ority 3 ingress limit ingress data rate limit for priority 3 frames ingress traffic from this port is shaped according to the data rate selected table. see the table follow the end of egress limit control registers r/w 0000000 register 187 (0xbb): port 1 queue 0 egress limit control 1 register 203 (0xcb): port 2 queue 0 egress limit control 1 register 219 (0xdb): port 3 queue 0 egress limit control 1 register 235 (0xeb): port 4 queue 0 egress limit control 1 register 251 (0xfb): port 5 queue 0 egress limit control 1 7 reserved ? ro 0 6 - 0 port queue 0 egress limit egress data rate limit for priority 0 frames egress traffic from this priority queue is shaped according to the data rate selected table. see the table follow the end of egress limit control registers. in four queues mode, it is lowest priority. in two queues mode, it is low priority. r/w 0000000 register 188 (0xbc): port 1 queue 1 egress limit control 2 register 204 (0xcc): port 2 queue 1 egress limit control 2 register 220 (0xdc): port 3 queue 1 egress limit control 2 register 236 (0xec): port 4 queue 1 egress limit control 2 register 252 (0xfc): port 5 queue 1 egress limit control 2 7 reserved ? ro 0 table 4-4: advanced control register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 73 ksz8895mqx/rqx/fqx/mlx 6 - 0 port queue 1 egress limit egress data rate limit for priority 1 frames egress traffic from this priority queue is shaped according to the data rate selected table. see the table follow the end of egress limit control registers. in four queues mode, it is low/high priority. in two queues mode, it is high priority. r/w 0000000 register 189 (0xbd): port 1 queue 2 egress limit control 3 register 205 (0xcd): port 2 queue 2 egress limit control 3 register 221 (0xdd): port 3 queue 2 egress limit control 3 register 237 (0xed): port 4 queue 2 egress limit control 3 register 253 (0xfd): port 5 queue 2 egress limit control 3 7 reserved ? ro 0 6 - 0 port queue 2 egress limit egress data rate limit for priority 2 frames egress traffic from this priority queue is shaped according to the data rate selected table. see the table follow the end of egress limit control registers. in four queues mode, it is high/low priority. r/w 0000000 register 190 (0xbe): port 1 queue 3 egress limit control 4 register 206 (0xce): port 2 queue 3 egress limit control 4 register 222 (0xde): port 3 queue 3 egress limit control 4 register 238 (0xee): port 4 queue 3 egress limit control 4 register 254 (0xfe): port 5 queue 3 egress limit control 4 7 reserved ? ro 0 6 - 0 port queue 3 egress limit ( note 4-1 , note 4-2 ) egress data rate limit for priority 3 frames egress traffic from this priority queue is shaped according to the data rate selected table. see the table follow the end of egress limit control registers. in four queues mode, it is highest priority. r/w 0000000 register 191 (0xbf): testing register 1 7 - 0 reserved n/a do not change ro 0x80 register 207 (0xcf): reserved control register 7 - 0 reserved n/a do not change ro 0x15 register 223 (0xdf): testing register 2 7 - 0 reserved n/a do not change ro 0x0c register 239 (0xef): port 3 copper or fiber control 7 fiber select for port 3 0 = port 3 is copper port (default) 1 = port 3 is fiber port. r/w 0 reserved n/a do not change ro 0110010 register 255 (0xff): testing register 3 7 reserved n/a do not change ro 0 6 invert phase of smtxc clock input on sw5- rmii for rqx part 1 = invert the phase of smtxc clock input in rmii mode, use falling ed ge to clock output data internally that will add ksz8995rqx output delay 10ns if smrxc is not inverted. 0 = normal phase if smtxc clock input note: mqx and fqx are reserved with read only for this bit. r/w 0 5 reserved n/a do not change ro 0 table 4-4: advanced control register descriptions (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 74 ? 2016 microchip technology inc. note 4-1 in the priority 0-3 ingress rate limit mode, there is a need to set all related ingress/egress port to two queues or four queues mode. note 4-2 in the port queue 0-3 egress rate limit mode, the hi ghest priority get exact rate limit based on the rate select table, other priorities packets rate are based up on the ratio of the register port control 10/11/12/13 when use more than one egress queue per port. 4 invert phase of smrxc clock output on sw5- rmii for rqx part 1 = invert the phase of smrxc clock output in rmii mode that will add opposite rmii output delay 10ns from clock rising edge to data out. 0 = normal phase if smrxc clock output note: mqx and fqx are reserved with read only for this bit. r/w 0 3 - 0 reserved n/a do not change ro 0 table 4-5: 10/100bt rate sele ction for the rate limit data rate limit for ingress or egress 100bt priority/queue 0-3 ingress/egress limit control register bit [6:0] = decimal; 1mbps rate 99 mbps rate (decimal integer 1-99); 0 or 100 (decimal), ?0? is default value 100bt priority/queue 0-3 ingress/egress limit control register bit [6:0] = decimal; 1mbps rate 9mbps rate (decimal integer 1-9); 0 or 100 (decimal), ?0? is default value less than 1 mbps, see below decimal 64 kbps 7?d101 128 kbps 7?d102 192 kbps 7?d103 256 kbps 7?d104 320 kbps 7?d105 384 kbps 7?d106 448 kbps 7?d107 512 kbps 7?d108 576 kbps 7?d109 640 kbps 7?d110 704 kbps 7?d111 768 kbps 7?d112 832 kbps 7?d113 896 kbps 7?d114 960 kbps 7?d115 table 4-4: advanced control register descriptions (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 75 ksz8895mqx/rqx/fqx/mlx 4.4 static mac address table ksz8895mqx/rqx/fqx/mlx has a static and a dynamic addre ss table. when a da look-up is requested, both tables will be searched to make a packet forwarding decision. when an sa look-up is requested, only the dynamic table is searched for aging, migration, and lear ning purposes. the static da look-up result will have precedence over the dynamic da look-up result. if there are da matches in both tabl es, the result from the static table will be used. the static table can only be accessed and controlled by an external spi ma ster (usually a processor). th e entries in the static table will not be aged out by ksz8895mqx/rqx/fqx/mlx. an external device does all addition, modification and deletion. please note that register bit assignments are different for static mac table reads and static mac table write, as shown in table 4-6 and ta b l e 4 - 7 . table 4-6: format of static mac table for reads address name description mode default format of static mac table for reads (32 entries) 63 - 57 fid filter vlan id, representing one of the 128 active vlans ro 0000000 56 use fid 1, use (fid+mac) to look-up in static table. 0, use mac only to look-up in static table. ro 0 55 reserved reserved. ro n/a 54 override 1, override spanning tree ?transmit enable = 0? or ?receive enable = 0? setting. this bit is used for span- ning tree implementation. 0, no override. ro 0 53 valid 1, this entry is valid, the look-up result will be used. 0, this entry is not valid. ro 0 52 - 48 forwarding ports the 5 bits control the forward ports, example: 00001, forward to port 1 00010, forward to port 2 ?. 10000, forward to port 5 00110, forward to port 2 and port 3 11111, broadcasting (excluding the ingress port) ro 00000 47 - 0 mac address (da) 48 bit mac address. ro 0x0 table 4-7: format of static mac table for writes address name description mode default format of static mac table for writes (32 entries) 62 - 56 fid filter vlan id, representing one of the 128 active vlans. w 0000000 55 use fid 1, use (fid+mac) to look-up in static table. 0, use mac only to look-up in static table. w0 54 override 1, override spanning tree ?transmit enable = 0? or ?receive enable = 0? setting. this bit is used for span- ning tree implementation. 0, no override. w0 53 valid 1, this entry is valid, the look-up result will be used. 0, this entry is not valid. w0
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 76 ? 2016 microchip technology inc. examples: 1. static address table read (read the 2nd entry) write to register 110 with 0x10 (read static table selected) write to register 111 with 0x1 (trigger the read operation) then read register 113 (63-56) read register 114 (55-48) read register 115 (47-40) read register 116 (39-32) read register 117 (31-24) read register 118 (23-16) read register 119 (15-8) read register 120 (7-0) 2. static address table write (write the 8th entry) write to register 110 with 0x10 (read static table selected) write register 113 (62-56) write register 114 (55-48) write register 115 (47-40) write register 116 (39-32) write register 117 (31-24) write register 118 (23-16) write register 119 (15-8) write register 120 (7-0) write to register 110 with 0x00 (write static table selected) write to register 111 with 0x7 (trigger the write operation) 52 - 48 forwarding ports the 5 bits control the forward ports, example: 00001, forward toport 1 00010, forward to port 2 ..... 10000, forward to port 5 00110, forward to port 2 and port 3 11111, broadcasting (excluding the ingress port) w 00000 47 - 0 mac address (da) 48-bit mac address. w 0x0 table 4-7: format of static mac table for writes (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 77 ksz8895mqx/rqx/fqx/mlx 4.5 vlan table the vlan table is used for vlan table look-up. if 802.1q vlan mode is enabled (register 5 bit 7 = 1), this table is used to retrieve vlan information that is associated with the i ngress packet. there are three fields for fid (filter id), valid, and vlan membership in the vlan table. the three fields mu st be initialized before the table is used. there is no vid field because 4096 vids are used as a dedicated memory address index into a 1024x52-bit memory space. each entry has four vlans. each vlan has 13 bits. four vlans need 52 bits. there are a total of 1024 entries to support a total of 4096 vlan ids by using dedicated memory address and data bits. refer to ta b l e 4 - 8 for details. fid has 7-bits to support 128 active vlans. if 802.1q vlan mode is enabled, ksz8895 assigns a vid to every ingress packet when the packet is untagged or tagged with a null vid, the packet is assigne d with the default port vid of the ingr ess port. if the packet is tagged with non-null vid, the vid in the tag is us ed. the look-up process starts from the vlan table look-up based on vid number with its dedicated memory address and data bits. if the entry is not valid in the vlan table, the packet is dropped and no address learning occurs. if the entry is valid, the fid is retrieved. the fid+da and fid+sa lookups in mac tables are performed. the fid+da look-up determi nes the forwarding ports. if fid+da fa ils for look-up in the mac table, the packet is broadcast to all the members or specified member s (excluding the ingress port) based on the vlan table. if fid+sa fails, the fid+sa is learned. to communicate between different active vlans, set the same fid; otherwise set a different fid. the vlan table configuration is organized as 1024 vlan sets , each vlan set consists of four vlan entries, to support up to 4096 vlan entries. each vlan set has 52 bits and should be read or written at the same time specified by the indirect address. the vlan entries in the vlan set is mapp ed to indirect data registers as follow: ? entry0[12:0] maps to the vl an set bits [12-0] {register119[4:0], register120[7:0]} ? entry1[12:0] maps to the vlan se t bits [25-13]{register117[1:0], re gister118[7:0], register119[7:5]} ? entry2[12:0] maps to the vl an set bits [38-26]{register 116[6:0], regi ster117[7:2]} ? entry3[12:0] maps to the vlan set bits [51-39]{register114[3:0], register115[7:0], register116[7]} in order to read one vlan entry, the vlan set is read firs t and the specific vlan entry information can be extracted. to update any vlan entry, the vlan set is read first then only the desired vlan entry is updated and the whole vlan set is written back. due to fid in vlan table is 7-bit, so the vlan table supports unique 128 flow vlan groups. each vlan set address is 10 bits long (maximum is 1024) in the indirect address register 110 and 111, the bits [9-8] of vlan set address is at bits [1-0] of register 110, and the bit [7-0 ] of vlan set address is at bits [7-0] of register 111. each write and read can access to four consecutive vlan entries. examples: 1. vlan table read (read the vid=2 entry) write the indirect control and address registers first write to register 110 (0x6e) with 0x14 (read vlan table selected) write to register 111 (0x6f) with 0x0 (trigger t he read operation for vid=0, 1, 2, 3 entries) then read the indirect data regist ers bits [38-26] for vid=2 entry: table 4-8: vlan table address name description mode initial value suggestion 12 valid 1, the entry is valid. 0, entry is invalid. r/w 0 11 - 7 membership specify which ports are members of the vlan. if a da look-up fails (no match in both static and dynamic tables), the packet associated with this vlan will be forwarded to ports specified in this field. e.g., 11001 means port 5, port 4 and port 1. r/w 11111 6 - 0 fid filter id. ksz8895 supports 128 active vlans repre- sented by these seven bit fields. fid is the mapped id. if 802.1q vlan is enabled, the look-up in mac table will be based on fid+da and fid+sa. r/w 0
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 78 ? 2016 microchip technology inc. read register 116 (0x74), (register116 [6:0] are bits 12-6 of vlan vid=2 entry) read register 117 (0x75), (register117 [7 :2] are bits 5-0 of vlan vid=2 entry) 2. vlan table write (write the vid=10 entry) read the vlan set that contains vid=8, 9, 10, 11. write to register 110 (0x6e) with 0x14 (read vlan table selected) write to register 111 (0x6f) with 0x02 (trigger the read operation and vid=8, 9, 10, 11 indirect address) read the vlan set first by the indirect data registers 114, 115, 116, 117, 118, 119, and 120. modify the indirect data registers bits [38-26] by the register 116 bit [6-0] and register 117 bit [7-2] as follows: write to register 116 (0x74), (register116 [6:0] are bits 12-6 of vlan vid=10 entry) write to register 117 (0x75), (register117 [7:2] are bits 5-0 of vlan vid=10 entry) then write the indirect control and address registers: write to register 110 (0x6e) with 0x04 (write vlan table selected) write to register 111 (0x6f) with 0x02 (trigger the wr ite operation and vid=8, 9, 10, 11 indirect address) table 4-9 illustrates the relationship of the indirect address/data registers and vlan id. table 4-9: vlan id and indirect registers indirect address high/low bit[9-0] for vlan sets indirect data register bits for each vlan entry vid numbers vid bit[12-2] in vlan tag vid bit[1-0] in vlan tag 0 bits [12-0] 0 0 0 0 bits [25-13] 1 0 1 0 bits [38-26] 2 0 2 0 bits [51-39] 3 0 3 1 bits [12-0] 4 1 0 1 bits [25-13] 5 1 1 1 bits [38-26] 6 1 2 1 bits [51-39] 7 1 3 2 bits [12-0] 8 2 0 2 bits [25-13] 9 2 1 2 bits [38-26] 10 2 2 2 bits [51-39] 11 2 3 ::::: ::::: ::::: 1023 bits [12-0] 4092 1023 0 1023 bits [25-13] 4093 1023 1 1023 bits [38-26] 4094 1023 2 1023 bits [51-39] 4095 1023 3
? 2016 microchip technology inc. ds00002246a-page 79 ksz8895mqx/rqx/fqx/mlx 4.6 dynamic mac address table table 4-10 is read-only. the contents are mainta ined only by the ksz8895mqx/rqx/fqx/mlx. examples: 1. dynamic mac address table read (read the 1s t entry), and retrieve the mac table size write to register 110 with 0x18 (read dynamic table selected) write to register 111 with 0x0 (trigger the read operation) and then read register 112 (71-64) read register 113 (63-56); // the abov e two registers show # of entries read register 114 (55-48) // if bit 55 is 1, restart (reread) from this register read register 115 (47-40) read register 116 (39-32) read register 117 (31-24) read register 118 (23-16) read register 119 (15-8) read register 120 (7-0) 2. dynamic mac address table read (r ead the 257th entry), without retrie ving # of entries information write to register 110 with 0x19 (read dynamic table selected) write to register 111 with 0x1 (trigger the read operation) and then read register 112 (71-64) read register 113 (63-56) read register 114 (55-48) // if bit 55 is 1, restart (reread) from this register read register 115 (47-40) read register 116 (39-32) read register 117 (31-24) read register 118 (23-16) table 4-10: dynamic mac address table address name description mode default format of dynamic mac address table (1k entries) 71 mac empty 1, there is no valid entry in the table. 0, there are valid entries in the table. ro 1 70 - 61 number of valid entries indicates how many valid entries in the table. 0x3ff means 1k entries 0x1 and bit 71 = 0: means 2 entries 0x0 and bit 71 = 0: means 1 entry 0x0 and bit 71 = 1: means 0 entry ro 0 60 - 59 time stamp 2-bit counters for internal aging ro ? 58 - 56 source port the source port where fid+mac is learned. 000 port 1 001 port 2 010 port 3 011 port 4 100 port 5 ro 0x0 55 data ready 1, the entry is not ready, retry until this bit is set to 0. 0, the entry is ready. ro ? 54 - 48 fid filter id. ro 0x0 47 - 0 mac address 48-bit mac address. ro 0x0
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 80 ? 2016 microchip technology inc. read register 119 (15-8) read register 120 (7-0) 4.7 management information base (mib) counters the mib counters are provided on per port basis. these coun ters are read using indirect memory access as noted in the following table: table 4-11: mib counters offset counter name description for port 1 0x0 rxloprioritybyte rx lo-priority (def ault) octet count including bad packets. 0x1 rxhiprioritybyte rx hi-priority octet count including bad packets. 0x2 rxundersizepkt rx undersize packets w/good crc. 0x3 rxfragments rx fragment packets w/bad crc, symbol errors or alignment errors. 0x4 rxoversize rx oversize packets w/good crc (max: 1536 or 1522 bytes). 0x5 rxjabbers rx packets longer than 1522b w/either crc errors, alignment errors, or sym- bol errors (depends on max packet size setting) or rx packets longer than 1916b only. 0x6 rxsymbolerror rx packets w/ invalid data symbol and legal preamble, packet size. 0x7 rxcrcerror rx packets within (64, 1522) bytes w/an integral number of bytes and a bad crc (upper limit depends up on max packet size setting). 0x8 rxalignmenterror rx packets within (64, 1522) bytes w/a no n-integral number of bytes and a bad crc (upper limit depends on max packet size setting). 0x9 rxcontrol8808pkts the number of mac control frames rece ived by a port with 88-08h in ether type field. 0xa rxpausepkts the number of pause frames received by a port. pause frame is qualified with ethertype (88-08h), da, control opcode (00-01), data length (64b min), and a valid crc. 0xb rxbroadcast rx good broadcast packets (not including errored broadcast packets or valid multicast packets). 0xc rxmulticast rx good multicast packets (not includ ing mac control frames, errored multi- cast packets or valid broadcast packets). 0xd rxunicast rx good unicast packets. 0xe rx64octets total rx packets (bad packets included) that were 64 octets in length. 0xf rx65to127octets total rx packets (bad packets included) that are between 65 and 127 octets in length. 0x10 rx128to255octets total rx packets (bad packets included) that are between 128 and 255 octets in length. 0x11 rx256to511octets total rx packets (bad packets included) that are between 256 and 511 octets in length. 0x12 rx512to1023octets total rx packets (bad packets included) that are between 512 and 1023 octets in length. 0x13 rx1024to1522octets total rx packets (bad packets included) that are between 1024 and 1522 octets in length (upper limit depends on max packet size setting). 0x14 txloprioritybyte tx lo-priority good octet count, including pause packets. 0x15 txhiprioritybyte tx hi-priority goo d octet count, including pause packets. 0x16 txlatecollision the number of times a collision is detected later than 512 bit-times into the tx of a packet. 0x17 txpausepkts the number of pause frames transmitted by a port. 0x18 txbroadcastpkts tx good broadcast packets (not including errored broadcast or valid multicast packets).
? 2016 microchip technology inc. ds00002246a-page 81 ksz8895mqx/rqx/fqx/mlx note 4-1 all port dropped packet mib counters do not indicate overflow or validity; therefore the application must keep track of overflow and valid conditions. 0x19 txmulticastpkts tx good multicast packets (not including errored multicast packets or valid broadcast packets). 0x1a txunicastpkts tx good unicast packets. 0x1b txdeferred tx packets by a port for which the 1st tx attempt is delayed due to the busy medium. 0x1c txtotalcollision tx total collision, half-duplex only. 0x1d txexcessivecollision a count of frames for which tx fails due to excessive collisions. 0x1e txsinglecollision successfully tx frames on a port for whic h tx is inhibited by exactly one colli- sion. 0x1f txmultiplecollision successfully tx frames on a port for wh ich tx is inhibited by more than one collision. for port 2, the base is 0x20, same offset definition (0x20-0x3f) for port 3, the base is 0x40, same offset definition (0x40-0x5f) for port 4, the base is 0x60, same offset definition (0x60-0x7f) for port 5, the base is 0x80, same offset definition (0x80-0x9f) format of per port mib counters (16 entries) address name description mode default 31 overflow 1, counter overflow. 0, no counter overflow. ro 0 30 count valid 1, counter value is valid. 0, counter value is not valid. ro 0 29 - 0 counter values counter value. ro 0 all ports dropped packet mib counters offset counter name description 0x100 port1 tx drop packets tx packets dropped due to lack of resources. 0x101 port2 tx drop packets tx packets dropped due to lack of resources. 0x102 port3 tx drop packets tx packets dropped due to lack of resources. 0x103 port4 tx drop packets tx packets dropped due to lack of resources. 0x104 port5 tx drop packets tx packets dropped due to lack of resources. 0x105 port1 rx drop packets rx packets dropped due to lack of resources. 0x106 port2 rx drop packets rx packets dropped due to lack of resources. 0x107 port3 rx drop packets rx packets dropped due to lack of resources. 0x108 port4 rx drop packets rx packets dropped due to lack of resources. 0x109 port5 rx drop packets rx packets dropped due to lack of resources. format of ?all dropped packet? mib counter, ( note 4-1 ) address name description mode default 30 - 16 reserved reserved n/a n/a 15 - 0 counter values counter value ro 0 table 4-11: mib counters (continued) offset counter name description for port 1
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 82 ? 2016 microchip technology inc. the ksz8895mqx/rqx/fqx/mlx provides a total of 34 mib c ounter per port. these counter are used to monitor the port detail activity for network management and maintenance. these mib counters are read using indirect memory access as illustrated in the following examples: programming examples: ( note 4-2 ) 1. mib counter read (read port 1 rx64octets counter) write to register 110 with 0x1c (read mib counters selected) write to register 111 with 0xe (trigger the read operation) then read register 117 (counter value 31-24) // if bit 31 = 1, there was a counter overflow // if bit 30 = 0, restart (reread) from this register read register 118 (counter value 23-16) read register 119 (counter value 15-8) read register 120 (counter value 7-0) 2. mib counter read (read port 2 rx64octets counter) write to register 110 with 0x1c (read mib counter selected) write to register 111 with 0x2e (trigger the read operation) then read register 117 (counter value 31-24) //if bit 31 = 1, there was a counter overflow //if bit 30 = 0, restart (reread) from this register read register 118 (counter value 23-16) read register 119 (counter value 15-8) read register 120 (counter value 7-0) 3. mib counter read (read port 1 tx drop packets) write to register 110 with 0x1d write to register 111 with 0x00 then read register 119 (counter value 15-8) read register 120 (counter value 7-0) note 4-2 to read out all the counters, the best performanc e over the spi bus is (160+3) 8 80 = 104 s, where there are 255 registers, three overhead, eigh t clocks per access, at 12 .5 mhz. in the heaviest condition, the byte counter will overflow in two minu tes. it is recommended that the software read all the counters at least every 30 seconds. the per port mib counters are designed as ?read clear.? a per port mib counter will be cleared after it is accessed. all port dropped packet mib counters are not cleared after they are accessed. the applic ation needs to keep track of overflow and valid conditions on these counters.
? 2016 microchip technology inc. ds00002246a-page 83 ksz8895mqx/rqx/fqx/mlx 4.8 miim registers all the registers defined in this section can be also acce ssed via the spi interface. note: different mapping mechanisms are used for miim and spi. the ?phyad? defined in ieee is assi gned as ?0x1? for port 1, ?0 x2? for port 2, ?0x3? for port 3, ?0x4? for port 4, and ?0x5? for po rt 5. the ?regad? supported are 0x0-0x 5 (0h-5h), 0x1d (1dh) and 0x1f (1fh). table 4-12: miim registers address name description mode default register 0h: mii control 15 soft reset 1, phy soft reset. 0, normal operation. r/w (sc) 0 14 loopback 1 = perform mac loopback, loopback path as follows: assume the loopback is at port 1 mac, port 2 is the monitor port. port 1 mac loopback (port 1 reg. 0, bit 14 = ?1?) start: rxp2/rxm2 (port 2). can also start from port 3, 4, 5 loopback: mac/phy interface of port 1?s mac end: txp2/txm2 (port 2). can also end at ports 3, 4, 5 respectively setting address ox3,4,5 reg. 0, bit 14 = ?1? will per- form mac loopback on ports 3, 4, 5 respectively. 0 = normal operation. r/w 0 13 force 100 1, 100 mbps. 0, 10 mbps. r/w 1 12 an enable 1, auto-negotiation enabled. 0, auto-negotiation disabled. r/w 1 11 power down 1, power down. 0, normal operation. r/w 0 10 phy isolate 1, electrical phy isolation of phy from tx+/tx-. 0, normal operation. r/w 0 9restart an 1, restart auto-negotiation. 0, normal operation. r/w 0 8 force full duplex 1, full duplex. 0, half duplex. r/w 0 7 collision test not supported. ro 0 6 reserved ? ro 0 5 hp_mdix 1 = hp auto mdi/mdi-x mode 0 = microchip auto mdi/mdi-x mode r/w 1 4force mdi 1, force mdi. 0, normal operation. (mdi-x tr ansmit on txp/txm pair) r/w 0 3 disable auto mdi/mdi-x 1, disable auto mdi/mdi-x. 0, enable auto mdi/mdi-x. r/w 0 2 disable far end fault 1, disable far end fault detection. 0, normal operation. r/w 0 1 disable transmit 1, disable transmit. 0, normal operation. r/w 0 0 disable led 1, disable led. 0, normal operation. r/w 0 register 1h: mii status 15 t4 capable 0, not 100 baset4 capable. ro 0 14 100 full capable 1, 100base-tx full-duplex capable. 0, not capable of 100base-tx full-duplex. ro 1
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 84 ? 2016 microchip technology inc. 13 100 half capable 1, 100base-tx half-duplex capable. 0, not 100base-tx half -duplex capable. ro 1 12 10 full capable 1, 10base-t full-d uplex capable. 0, not 10base-t full-duplex capable. ro 1 11 10 half capable 1, 10base-t half-d uplex capable. 0, 10base-t half-d uplex capable. ro 1 10 - 7 reserved ? ro 0 6 preamble suppressed not supported ro 0 5 an complete 1, auto-negotiation complete. 0, auto-negotiation not completed. ro 0 4 far end fault 1, far end fault detected. 0, no far end fault detected. ro 0 3 an capable 1, auto-negotiation capable. 0, not auto-negotiation capable. ro 1 2 link status 1, link is up. 0, link is down. ro 0 1 jabber test not supported. ro 0 0 extended capable 0, not extended register capable. ro 0 register 2h: phyid high 15 - 0 phyid high high order phyid bits. ro 0x0022 register 3h: phyid low 15 - 0 phyid low low order phyid bits. ro 0x1450 register 4h: advertisement ability 15 next page not supported ro 0 14 reserved ? ro 0 13 remote fault not supported ro 0 12 - 11 reserved ? ro 0 10 pause 1, advertise pause ability. 0, do not advertise pause ability. r/w 1 9 reserved ? ro 0 8 adv 100 full 1, advertise 100 full-duplex ability. 0, do not advertise 100 full-duplex ability. r/w 1 7 adv 100 half 1, advertise 100 half-duplex ability. 0, do not advertise 100 half-duplex ability. r/w 1 6adv 10 full 1, advertise 10 full-duplex ability. 0, do not advertise 10 full-duplex ability. r/w 1 5 adv 10 half 1, advertise 10 half-duplex ability. 0, do not advertise 10 half-duplex ability. r/w 1 4 - 0 selector field 802.3 ro 00001 register 5h: link partner ability 15 next page not supported. ro 0 14 lp ack not supported. ro 0 13 remote fault not supported. ro 0 12 - 11 reserved ? ro 0 table 4-12: miim registers (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 85 ksz8895mqx/rqx/fqx/mlx 10 pause 1, link partner flow control capable. 0, link partner not flow control capable. ro 0 9 reserved ? ro 0 8 adv 100 full 1, link partner 100bt full-duplex capable. 0, link partner not 100bt full-duplex capable. ro 0 7 adv 100 half 1, link partner 100bt half-duplex capable. 0, link partner not 100bt half-duplex capable. ro 0 6adv 10 full 1, link partner 10bt full-duplex capable. 0, link partner not 10bt full-duplex capable. ro 0 5 adv 10 half 1, link partner 10bt half-duplex capable. 0, link partner not 10bt half-duplex capable. ro 0 4 - 0 reserved ? ro 00001 register 1dh: linkmd control/status 15 vct_enable 1 = enable cable diagnostic. after vct test has com- pleted, this bit will be self-cleared. 0 = indicate cable diagnostic test (if enabled) has com- pleted and the status information is valid for read. r/w (sc) 0 14 - 13 vct_result 00 = normal condition 01 = open condition detected in cable 10 = short condition detected in cable 11 = cable diagnostic test has failed ro 00 12 vct 10m short 1 = less than 10 meter short ro 0 11 - 9 reserved ? ro 0 8 - 0 vct_- fault_count distance to the fault. it is approximately 0.4m x vct_fault_count[8:0] ro 000000000 register 1fh: phy special control/status 15 - 11 reserved ? ro 00000 10 - 8 port opera- tion mode indication indicate the current state of port operation mode: [000] = reserved. [001] = still in auto-negotiation. [010] = 10base-t half-duplex. [011] = 100base-tx half-duplex. [100] = reserved. [101] = 10base-t full-duplex. [110] = 100base- tx full-duplex. [111] = phy/mii isolate. ro 000 7 - 6 reserved n/a do not change r/w 00 5polrvs 1 = polarity is reversed. 0 = polarity is not reversed. ro 0 4 mdi-x status 1 = mdi 0 = mdi-x ro 0 3 force_link 1 = force link pass. 0 = normal operation. r/w 0 2pwrsave 1 = enable power save. 0 = disable power save. r/w 0 table 4-12: miim registers (continued) address name description mode default
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 86 ? 2016 microchip technology inc. 1 remote loopback 1 = perform remote loopback, loopback path as follows: port 1 (phy id address 0x1 reg. 1f, bit 1 = ?1?) start: rxp1/rxm1 (port 1) loopback: pmd/pma of port 1?s phy end: txp1/txm1 (port 1) setting phy id address 0x2, 3, 4, 5 reg. 1f, bit 1 = ?1? will perform remote loopback on port 2, 3, 4, 5. 0 = normal operation. r/w 0 0 reserved ? ro 0 table 4-12: miim registers (continued) address name description mode default
? 2016 microchip technology inc. ds00002246a-page 87 ksz8895mqx/rqx/fqx/mlx 5.0 operational characteristics 5.1 absolute maximum ratings* supply voltage (v ddar , v ddap , v ddc ).............................................................................................................................. . ?0.5v to +2.4v (v ddat , v ddio ) .............................................................................................................................. ............ ?0.5v to +4.0v input voltage .................................................................................................................. ........................... ?0.5v to +4.0v output voltage ................................................................................................................. ......................... ?0.5v to +4.0v lead temperature (soldering, 10s) .............................................................................................. ......................... +260c storage temperature (t s ) .............. .............. .............. .............. .............. .............. .............. .............. ...... ?55c to +150c hbm esd rating** ............................................................................................................... ..................................... 5 kv *exceeding the absolute maximum rating may damage the dev ice. stresses greater than the absolute maximum rating may cause permanent damage to the device. operation of the de vice at these or any other conditions above those spec- ified in the operating sections of this specification is not implied. maximum conditions for extended periods may affect reliability. **devices are esd sensitive. handling precautio ns are recommended. human body model, 1.5 k ? in series with 100 pf. 5.2 operating ratings*** supply voltage (v ddar , v ddc ).............................................................................................................................. ..... +1.140v to +1.320v (v ddat ).............................................................................................................................. ................ +3.135v to +3.465v (v ddio @ 3.3v) ....................................................................................................................... .......... +3.135v to +3.465v (v ddio @ 2.5v) ....................................................................................................................... .......... +2.375v to +2.625v (v ddio @ 1.8v) ....................................................................................................................... .......... +1.710v to +1.890v ambient temperature (t a commercial)................................................................................................................... ........................ 0c to +70c (t a industrial) ........... .............. .............. .............. .............. .............. .............. ........... ......... ........................ ?40c to +85c maximum junction temperature (t j max.) ........................................................................................................... +125c 128-pin package thermal resistance**** pqfp thermal resistance ( ja )...................................................................................................................+41.54c/w pqfp thermal resistance ( jc )...................................................................................................................+19.78c/w lqfp thermal resistance ( ja ) ...................................................................................................................+48.22c/w lqfp thermal resistance ( jc ) ...................................................................................................................+13.95c/w ***the device is not guaranteed to function outside its operat ing ratings. unused inputs must always be tied to an appro- priate logic voltage level (ground or v dd ). ****no heat spreader in package. the thermal junction to ambient ( ja ) and the thermal junction to case ( jc ) are under air velocity 0 m/s. note: do not drive input signals without power supplied to the device.
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 88 ? 2016 microchip technology inc. 6.0 electrical characteristics v in = 1.2v/3.3v (typical). t a = 25c. specification is for packaged product only. there is not an additional transformer consumption due to the use of on-ch ip termination technology with internal biasing for 10base-t and 100base-tx. measurements were taken with operating ratings. table 6-1: electrical characteristics parameters symbol min. typ. max. units note 100base-tx operation?all ports 100% utilization 100base-tx (transmitter) 3.3v analog i dx ?86?ma v ddat 100base-tx 1.2v analog i dda ?22?ma v ddar 100base-tx 1.2v digital i ddc ?42?ma v ddc 100base-tx (digital io) standalone 5-port i ddio ?2.4?ma v ddio 3.3v digital io sw5-mii mac/phy + p5-mii i ddio ? 22/38 ? ma v ddio 3.3v digital io sw5-rmii + p5-rmii i ddio ?39?ma v ddio 10base-t operation ?all ports 100% utilization 10base-t (transmitter) 3.3v analog i dx ?107?ma v ddat 10base-t 1.2v analog i dda ?8.6?ma v ddar 10base-t 1.2v digital i ddc ?44?ma v ddc 10base-t (digital io) standalone 5-port i ddio ?2.2?ma v ddio 3.3v digital io sw5-mii mac/phy + p5-mii i ddio ?5/18? ma v ddio 3.3v digital io sw5-rmii + p5-rmii i ddio ?29?ma v ddio auto-negotiation mode 10base-t (transmitter) 3.3v analog i dx ?55?ma v ddat 10base-t 1.2v analog i dda ?22?ma v ddar 10base-t 1.2v digital i edm ?46?ma v ddc 10base-t (digital io) standalone 5-port i ddio ?1.5?ma v ddio power management mode (standalone) hardware power-down mode 3.3v i hpdm1 ?2?ma v ddat + v ddio hardware power-down mode 1.2v i hpdm2 ?1?ma v ddar + v ddc power-saving mode 3.3v i psm1 ?35?ma v ddat + v ddio power-saving mode 1.2v i psm2 ?55?ma v ddar + v ddc soft power-down mode 3.3v i spdm1 ?2?ma v ddat + v ddio soft power-down mode 1.2v i spdm2 ?1.8?ma v ddar + v ddc energy-detect mode + pll off 3.3v i edm1 ?5.5?ma v ddat + v ddio
? 2016 microchip technology inc. ds00002246a-page 89 ksz8895mqx/rqx/fqx/mlx energy-detect mode + pll off 1.2v i edm2 ?1.5?ma v ddar + v ddc cmos inputs input high voltage (v ddio = 3.3/2.5/1.8v) v ih 2.0/1.8/ 1.3 ?? v ? input low voltage (v ddio = 3.3/2.5/1.8v) v il ?? 0.8/0.7/ 0.5 v? input current (excluding pull-up/ pull-down) i in ?10 ? 10 a v in = gnd ~ v ddio cmos outputs input high voltage (v ddio = 3.3/2.5/1.8v) v oh 2.4/2.0/ 1.5 ?? v i oh = ?8 ma input low voltage (v ddio = 3.3/2.5/1.8v) v ol ?? 0.4/0.4/ 0.3 vi ol = 8 ma output tri-state leakage i oz ? ? 10 a v in = gnd ~ v ddio 100base-tx/fx transmit (measured differentially after 1:1 transformer) peak differential output voltage v o 0.95 ? 1.05 v 100 ? termination on the differential output output voltage imbalance v imb ?? 2 % 100 ? termination on the differential output rise/fall time t r /t f 3?5ns ? rise/fall time imbalance 0 ? 0.5 ns ? duty cycle distortion ? ? ? 0.5 ns ? overshoot ? ? ? 5 % ? output jitters ? 0 0.75 1.4 ns peak-to-peak 100base-fx receiver input signal threshold voltage v ist 400 ? ? mv 100 ? impedance on rx fxsd signal-detect voltage threshold v fxsd ?1.2? v 1.2v: fx signal detect mode <1.2v: non-signal detect mode 10base-t receive squelch threshold v sq 300 400 585 mv 5 mhz square wave 10base-t transmit (measured different ially after 1:1 transformer) v ddat = 3.3v peak differential output voltage v p 2.2 2.5 2.8 v 100 ? termination on the differential output output jitters ? ? 1.4 3.5 ns peak-to-peak rise/fall times ? ? 28 30 ns ? table 6-1: electrical characteristics (continued) parameters symbol min. typ. max. units note
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 90 ? 2016 microchip technology inc. 7.0 timing diagrams 7.1 eeprom timing figure 7-1: eeprom in terface input receive timing diagram figure 7-2: eeprom in terface output transmit timing diagram table 7-1: eeprom timing parameters parameter description min. typ. max. units t cyc1 clock cycle ? 16384 ? ns t s1 setup time 20 ? ? ns t h1 hold time 20 ? ? ns t ov1 output valid 4096 4112 4128 ns
? 2016 microchip technology inc. ds00002246a-page 91 ksz8895mqx/rqx/fqx/mlx 7.2 sni timing figure 7-3: sni input timing figure 7-4: sni output timing table 7-2: sni timing parameters parameter description min. typ. max. units t cyc2 clock cycle ? 100 ? ns t s2 set-up time 10 ? ? ns t h2 hold time 0 ? ? ns t o2 output valid 0 3 6 ns
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 92 ? 2016 microchip technology inc. 7.3 mii timing figure 7-5: mac mode mii timing - data received from mii figure 7-6: mac mode mii timing - data transmitted from mii table 7-3: mac mode mii timing parameters symbol parameter 10base-t/100base-tx min. typ. max. units t cyc3 clock cycle ? 400/40 ? ns t s3 setup time 10 ? ? ns t h3 hold time 5 ? ? ns t ov3 output valid 3 7 25 ns
? 2016 microchip technology inc. ds00002246a-page 93 ksz8895mqx/rqx/fqx/mlx figure 7-7: phy mode mii timi ng - data received from mii figure 7-8: phy mode mii timi ng - data transmitted from mii table 7-4: phy mode mii timing parameters symbol parameter 10base-t/100base-tx min. typ. max. units t cyc4 clock cycle ? 400/40 ? ns t s4 setup time 10 ? ? ns t h4 hold time 0 ? ? ns t ov4 output valid 16 20 25 ns
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 94 ? 2016 microchip technology inc. 7.4 rmii timing figure 7-9: rmii timing - data received from rmii figure 7-10: rmii timing - data transmitted to rmii table 7-5: rmii timing parameters symbol description min. typ. max. units t cyc clock cycle ? 20 ? s t 1 setup time 4 ? ? ms t 2 hold time 2 ? ? ns t od output delay 6 10 14 ns
? 2016 microchip technology inc. ds00002246a-page 95 ksz8895mqx/rqx/fqx/mlx 7.5 spi timing figure 7-11: spi input timing table 7-6: spi input timing parameters symbol parameter min. typ. max. units f c clock frequency ? ? 25 mhz t chsl spis_n inactive hold time 10 ? ? ns t slch spis_n active setup time 10 ? ? ns t chsh spis_n active hold time 10 ? ? ns t shch spis_n inactive setup time 10 ? ? ns t shsl spis_n deselect time 20 ? ? ns t dvch data input setup time 5 ? ? ns t chdx data input hold time 5 ? ? ns t clch clock rise time ? ? 1 s t chcl clock fall time ? ? 1 s t dldh data input rise time ? ? 1 s t dhdl data input fall time ? ? 1 s
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 96 ? 2016 microchip technology inc. figure 7-12: spi output timing table 7-7: spi output timing parameters symbol parameter min. typ. max. units f c clock frequency ? ? 25 mhz t clqx spiq hold time 0 ? 0 ns t clqv clock low to spiq valid ? ? 15 ns t ch clock high time 18 ? ? ns t cl clock low time 18 ? ? ns t qlqh spiq rise time ? ? 50 ns t qhql spiq fall time ? ? 50 ns t shqz spiq disable time ? ? 15 ns
? 2016 microchip technology inc. ds00002246a-page 97 ksz8895mqx/rqx/fqx/mlx 7.6 auto-negotiation timing figure 7-13: auto- negotiation timing table 7-8: auto-negotiat ion timing parameters symbol parameter min. typ. max. units t btb flp burst to flp burst 8 16 24 ms t flpw flp burst width ? 2 ? ms t pw clock/data pulse width ? 100 ? ns t ctd clock pulse to data pulse 55.5 64 69.5 s t ctc clock pulse to clock pulse 111 128 139 s ? number of clock/data pulses per burst 17 ? 33 ?
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 98 ? 2016 microchip technology inc. 7.7 mdc/mdio timing figure 7-14: mdc/mdio timing table 7-9: mdc/mdio typical timing parameters symbol parameter min. typ. max. units t p mdc period ? 400 ? ns t md1 mdio (phy input) setup to rising edge of mdc 10 ? ? ns t md2 mdio (phy input) gold from rising edge of mdc 4 ? ? ns t md3 mdio (phy output) delay from rising edge of mdc ? 222 ? ns
? 2016 microchip technology inc. ds00002246a-page 99 ksz8895mqx/rqx/fqx/mlx 7.8 reset timing figure 7-15: reset timing diagram table 7-10: reset timing parameters symbol parameter min. typ. max. units t sr stable supply voltages to reset high 10 ? ? ms t cs configuration setup time 50 ? ? ns t ch configuration hold time 50 ? ? ns t rc reset to strap-in pin output 50 ? ? ns t vr 3.3v rise time 100 ? ? s
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 100 ? 2016 microchip technology inc. 8.0 reset circuit a discreet reset circuit, as shown in figure 8-1 , is recommended for the power-up reset circuit. figure 8-1: recommended reset circuit figure 8-2 shows a reset circuit recommended for applications w here reset is driven by another device (for example, the cpu or an fpga). the reset out rst_out_n from cp u/fpga provides the warm reset after power up reset. d2 is required if using different v ddio voltage between switch and cpu/fpga. dio de d2 should be selected to provide maximum 0.3v v f (forward voltage), for example, vishay bat54, mss1p2l. alternatively, a level shifter device can also be used. d2 is not required if switch and cpu/fpga use same v ddio voltage. figure 8-2: recommended reset cir cuit for cpu/fpga reset output ksz8895 vddio d1 d1: 1n4148 5n c 10f rst# ksz8895 cpu/fpga vddio c 10f 5n rst_out_n d1 d2 d1: 1n4148 rst#
? 2016 microchip technology inc. ds00002246a-page 101 ksz8895mqx/rqx/fqx/mlx 9.0 selection of isol ation transformer, ( note 9-1 ) one simple 1:1 isolation transformer is needed at the line in terface. an isolation tran sformer with integrated common- mode choke is recommended for exceeding fcc requirements at line side. request to separate the center taps of rx/ tx at chip side. table 9-1 gives recommended transformer characteristics. note 9-1 the ieee 802.3u stan dard for 100base-tx assumes a transforme r loss of 0.5 db. for the transmit line transformer, insertion loss of up to 1.3 db can be compensated by increasing the line drive current by means of reducing the iset resistor value. 9.0.1 selection of transformer vendors the following transformer vendors provide compatible magnetic parts for the ksz8895mqx/rqx/fqx/mlx: 9.0.2 selection of reference crystal table 9-1: transformer selection criteria characteristics value test condition turns ratio 1 ct:1 ct ? open-circuit inductance (min.) 350 h 100 mv, 100 khz, 8 ma insertion loss (max.) 1.1 db 0.1 mhz to 100 mhz hipot (min.) 1500 v rms ? table 9-2: qualified magnetic vendors vendor and part auto mdix number of ports vendor and part auto mdix number of ports pulse h1664nl yes 4 pulse h1102 yes 1 pulse h1164nl yes 4 bel fuse s558-5999-u7 yes 1 tdk tla-6t718a yes 1 ycl pt163020 yes 1 lankom lf-h41s yes 1 transpower hb726 yes 1 datatronic nt79075 yes 1 delta lf8505 yes 1 table 9-3: typical reference crystal characteristics characteristics value frequency 25.00000 mhz frequency tolerance (max.) 50 ppm load capacitance (max.) 27 pf series resistance (esr) 40 ?
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 102 ? 2016 microchip technology inc. 10.0 package outline figure 10-1: 128-lead lqfp 14 mm x 14 mm package note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging.
? 2016 microchip technology inc. ds00002246a-page 103 ksz8895mqx/rqx/fqx/mlx figure 10-2: 128-lead pqfp 14 mm x 20 mm package note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging.
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 104 ? 2016 microchip technology inc. appendix a: data sheet revision history table a-1: revision history revision section/figure/entry correction ds00002246a (08-12-16) ? converted micrel data sheet ksz8895mqx/rqx/ fqx/mlx to microchip ds00002246a. minor text changes throughout.
? 2016 microchip technology inc. ds00002246a-page 105 ksz8895mqx/rqx/fqx/mlx the microchip web site microchip provides online support via our www site at www.microchip.com . this web site is used as a means to make files and information easily available to customers. accessible by using your favorite internet browser, the web site con- tains the following information: ? product support ? data sheets and errata, application notes and sample programs, design resources, user?s guides and hardware support documents, latest software releases and archived software ? general technical support ? frequently asked questions (faq), te chnical support requests, online discussion groups, microchip consultant program member listing ? business of microchip ? product selector and ordering guides, latest microchip press releases, listing of semi- nars and events, listings of microchip sales offi ces, distributors and factory representatives customer change notification service microchip?s customer notification servic e helps keep customers current on microc hip products. subscribers will receive e-mail notification whenever there are changes, updates, revisi ons or errata related to a specified product family or development tool of interest. to register, access the microchip web site at www.microchip.com . under ?support?, click on ?customer change notifi- cation? and follow the registration instructions. customer support users of microchip products can receive assistance through several channels: ? distributor or representative ? local sales office ? field application engineer (fae) ? technical support customers should contact their distributor, representative or field application engineer (fae) for support. local sales offices are also available to help customers. a listing of sales offices and locations is included in the back of this docu- ment. technical support is available through the web site at: http://microchip.com/support
ksz8895mqx/rqx/fqx/mlx ds00002246a-page 106 ? 2016 microchip technology inc. product identification system to order or obtain information, e.g., on pricing or de livery, refer to the factory or the listed sales office . device: ksz8895 interface: m = mii r = rmii f = mii with fiber support package: q = 128-pin pqfp l = 128-pin lqfp special attribute: x = none temperature: c = 0 ? c to +70 ? c (commercial) i = ?40 ? c to +85 ? c (industrial) media type: tr = 1,000/reel (mlx/mqx[commercial]); 350/reel (all other versions) blank = 66/tray (pqfp); 90/tray (lqfp) examples: a) ksz8895mqxc-tr mii interface, 128-pin pqfp, pb-free, commercial temperature, 1,000/reel b) ksz8895mqxi-tr mii interface, 128-pin pqfp, pb-free industrial temperature, 350/reel c) ksz8895rqxc rmii interface, 128-pin pqfp, pb-free commercial temperature, 66/tray d) ksz8895rqxi rmii interface, 128-pin pqfp, pb-free industrial temperature, 66/tray e) ksz8895fqxc-tr mii interface with fiber support, 128-pin pqfp, pb-free, commercial temperature 350/reel f) ksz8895fqxi-tr mii interface with fiber support, 128-pin pqfp, pb-free, industrial temperature 350/reel g) ksz8895mlxc mii interface, 128-pin lqfp, pb-free, commercial temperature, 90/tray h) ksz8895mlxi-tr mii interface, 128-pin lqfp, pb-free industrial temperature, 1,000/reel part no. x x package interface device x temp. x special attribute xx media type
? 2016 microchip technology inc. ds00002246a-page 107 information contained in this publication regarding device applications and the like is provided on ly for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with yo ur specifications. microchip make s no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fi tness for purpose . microchip disclaims all liability arising from this information and its use. use of micro- chip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemn ify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, impl icitly or otherwise, under any microchip intellectual property rights unless otherwise stated. trademarks the microchip name and logo, the microchip l ogo, anyrate, dspic, flashflex, flexpw r, heldo, jukeblox, keeloq, keeloq logo, kleer, lancheck, link md, medialb, most, most logo, mplab, optolyzer, pic, picstart, pic32 logo, righttouch, spynic, sst, sst logo, superflash and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. clockworks, the embedded control solutions company, ethersyn ch, hyper speed control, hyperlight load, intellimos, mtouch, precision edge, and quiet-wire are registered tradem arks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, any capacitor, anyin, anyout, body com, chipkit, chipkit logo, codeguard, dspicdem, dspicdem.net, dynamic average matching, dam, ecan, ethergreen, in-circuit se rial programming, icsp, inter-c hip connectivity, jitterblocker, kleernet, kleernet logo, miwi, motorbench, mpasm, mpf, mplab certified logo, mplib, mplink, multitrak, netdetach, omniscient code generation, picdem, picdem.net, pickit, pictail, puresilicon, righttouch logo, re al ice, ripple blocker, serial quad i/o, sqi, superswitcher, super switcher ii, total endurance, ts harc, usbcheck, varisense, viewspan, wiperlock, wireless dna, and zena are trademarks of mi crochip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchi p technology incorporated in the u.s.a. silicon storage technology is a regi stered trademark of microchip tech nology inc. in other countries. gestic is a registered trademarks of microc hip technology germany ii gmbh & co. kg, a s ubsidiary of microchip technology inc., in other countries. all other trademarks mentioned herein are property of their respective companies. ? 2016, microchip technology incorporated, printed in the u.s.a., all rights reserved. isbn: 978-1-5224-0865-9 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal meth ods used to breach the code protection fe ature. all of these methods, to our knowledge, require using the microchip pr oducts in a manner outside the operating specif ications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconduc tor manufacturer can guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are committed to continuously improving the code protection features of our products. attempts to break microchip?s c ode protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your softwa re or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microper ipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development syst ems is iso 9001:2000 certified. quality management s ystem by dnv == iso/ts 16949 ==
ds00002246a-page 108 ? 2016 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 austin, tx tel: 512-257-3370 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit novi, mi tel: 248-848-4000 houston, tx tel: 281-894-5983 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 new york, ny tel: 631-435-6000 san jose, ca tel: 408-735-9110 canada - toronto tel: 905-695-1980 fax: 905-695-2078 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2943-5100 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8569-7000 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - dongguan tel: 86-769-8702-9880 china - guangzhou tel: 86-20-8755-8029 china - hangzhou tel: 86-571-8792-8115 fax: 86-571-8792-8116 china - hong kong sar tel: 852-2943-5100 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8864-2200 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 asia/pacific china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-3019-1500 japan - osaka tel: 81-6-6152-7160 fax: 81-6-6152-9310 japan - tokyo tel: 81-3-6880- 3770 fax: 81-3-6880-3771 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-5778-366 fax: 886-3-5770-955 taiwan - kaohsiung tel: 886-7-213-7828 taiwan - taipei tel: 886-2-2508-8600 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - dusseldorf tel: 49-2129-3766400 germany - karlsruhe tel: 49-721-625370 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 italy - venice tel: 39-049-7625286 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 poland - warsaw tel: 48-22-3325737 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 sweden - stockholm tel: 46-8-5090-4654 uk - wokingham tel: 44-118-921-5800 fax: 44-118-921-5820 worldwide sales and service 06/23/16


▲Up To Search▲   

 
Price & Availability of KSZ8895MLXC-TR

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X